aboutsummaryrefslogtreecommitdiffstats
path: root/auto_source.js
diff options
context:
space:
mode:
Diffstat (limited to 'auto_source.js')
-rw-r--r--auto_source.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/auto_source.js b/auto_source.js
index ae15609..85446c6 100644
--- a/auto_source.js
+++ b/auto_source.js
@@ -151,7 +151,7 @@ let INFO =
if (force) {
killWatcher(filepath);
} else {
- throw 'The file has already been watched: ' + filepath;
+ return liberator.echoerr('The file has already been watched: ' + filepath);
}
}
let last = firstTime ? null : getFileModifiedTime(filepath);
@@ -181,7 +181,7 @@ let INFO =
function killWatcher (filepath) {
if (!exists(filepath))
- throw 'The file is not watched: ' + filepath;
+ return liberator.echoerr('The file is not watched: ' + filepath);
remove(filepath, function (it) clearInterval(it.handle));
liberator.echo('stopped the watching for the file');
}