Extend errors.handle to catch EPERM as well

This commit is contained in:
Juan Cruz Viotti 2015-01-28 15:45:30 -04:00
parent d75a19fc6e
commit 00623833cc

View File

@ -12,7 +12,7 @@ exports.handle = (error, exit = true) ->
else if error.code is 'ENOENT'
console.error("No such file or directory: #{error.path}")
else if error.code is 'EACCES'
else if error.code is 'EACCES' or error.code is 'EPERM'
console.error('You don\'t have enough privileges to run this operation.')
else if error.message?