ソースを参照

removed console.log, added try/catch

master
mortie 7年前
コミット
f3c4e1bd99
2個のファイルの変更5行の追加2行の削除
  1. 0
    1
      js/fsutil.js
  2. 5
    1
      js/play/index.js

+ 0
- 1
js/fsutil.js ファイルの表示

@@ -28,7 +28,6 @@ exports.move = function(src, dst, cb) {
* Remove directory, deleting its content in the process
*/
exports.rmdir = function(dir) {
console.log("rmdir", dir);
try {
fs.accessSync(dir, fs.F_OK)
} catch (err) {

+ 5
- 1
js/play/index.js ファイルの表示

@@ -76,7 +76,11 @@ player.onstop = function() {
httpStream.stop();

exports.cleanupFiles.forEach(f => {
fs.unlink(f, err => { if (err) console.trace(err) });
try {
fs.unlink(f, err => { if (err) console.trace(err) });
} catch (err) {
console.trace(err);
}
});
exports.cleanupFiles = [];


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