ソースを参照

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

master
mortie 7年前
コミット
1520bc0866
1個のファイルの変更4行の追加1行の削除
  1. 4
    1
      js/slideshow.js

+ 4
- 1
js/slideshow.js ファイルの表示

@@ -32,7 +32,10 @@ function sendFile(path, res) {
});

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


読み込み中…
キャンセル
保存