aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranekos2010-04-12 17:34:30 +0000
committeranekos2010-04-12 17:34:30 +0000
commitd45d73acb959b8db45bb9137167ac6153632586a (patch)
treeca625e03591800e3e8f8c925c406c10f969047e6
parentfd61b8763337e6c29b06074dbbf7173e8aa65727 (diff)
downloadvimperator-plugins-d45d73acb959b8db45bb9137167ac6153632586a.tar.bz2
エラーを echo するように
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37207 d0d07461-0603-4401-acd4-de1884942a52
-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');
}