Browse Source

removed console.log, added try/catch

master
mortie 7 years ago
parent
commit
f3c4e1bd99
2 changed files with 5 additions and 2 deletions
  1. 0
    1
      js/fsutil.js
  2. 5
    1
      js/play/index.js

+ 0
- 1
js/fsutil.js View File

@@ -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 View File

@@ -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 = [];


Loading…
Cancel
Save