diff options
author | anekos | 2010-04-12 17:34:30 +0000 |
---|---|---|
committer | anekos | 2010-04-12 17:34:30 +0000 |
commit | d45d73acb959b8db45bb9137167ac6153632586a (patch) | |
tree | ca625e03591800e3e8f8c925c406c10f969047e6 /auto_source.js | |
parent | fd61b8763337e6c29b06074dbbf7173e8aa65727 (diff) | |
download | vimperator-plugins-d45d73acb959b8db45bb9137167ac6153632586a.tar.bz2 |
エラーを echo するように
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37207 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'auto_source.js')
-rw-r--r-- | auto_source.js | 4 |
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'); } |