mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-02-20 17:33:18 +00:00
Extend errors.handle to catch EPERM as well
This commit is contained in:
parent
d75a19fc6e
commit
00623833cc
@ -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?
|
||||
|
Loading…
x
Reference in New Issue
Block a user