Przeglądaj źródła

no longer spams the console with errors when non-existant files are edited

master
mortie 7 lat temu
rodzic
commit
1520bc0866
1 zmienionych plików z 4 dodań i 1 usunięć
  1. 4
    1
      js/slideshow.js

+ 4
- 1
js/slideshow.js Wyświetl plik

}); });


fs.createReadStream(path) fs.createReadStream(path)
.on("error", err => error(err, res))
.on("error", err => {
res.writeHead(404);
res.end(err.toString());
})
.pipe(res); .pipe(res);
} }



Ładowanie…
Anuluj
Zapisz