mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-23 23:42:24 +00:00
Decouple client code from resin.errors
This commit is contained in:
parent
da099e876d
commit
0746723abd
@ -53,6 +53,6 @@ exports.add = permissions.user (params) ->
|
||||
error.message = "File is a directory: #{params.path}"
|
||||
|
||||
if error.code is 'ENOENT'
|
||||
error = new resin.errors.FileNotFound(params.path)
|
||||
error = new Error("File not found: #{params.path}")
|
||||
|
||||
errors.handle(error)
|
||||
|
Loading…
Reference in New Issue
Block a user