From d45d73acb959b8db45bb9137167ac6153632586a Mon Sep 17 00:00:00 2001 From: anekos Date: Mon, 12 Apr 2010 17:34:30 +0000 Subject: エラーを echo するように git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37207 d0d07461-0603-4401-acd4-de1884942a52 --- auto_source.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'auto_source.js') 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'); } -- cgit v1.2.3