Changeset 37207

Show
Ignore:
Timestamp:
04/13/10 02:34:30 (3 years ago)
Author:
anekos
Message:

エラーを echo するように

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/vimperator-plugins/trunk/auto_source.js

    r37206 r37207  
    152152        killWatcher(filepath); 
    153153      } else { 
    154         throw 'The file has already been watched: ' + filepath; 
     154        return liberator.echoerr('The file has already been watched: ' + filepath); 
    155155      } 
    156156    } 
     
    182182  function killWatcher (filepath) { 
    183183    if (!exists(filepath)) 
    184       throw 'The file is not watched: ' + filepath; 
     184      return liberator.echoerr('The file is not watched: ' + filepath); 
    185185    remove(filepath, function (it) clearInterval(it.handle)); 
    186186    liberator.echo('stopped the watching for the file');