mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-18 21:27:51 +00:00
Catch errors from applicationModel.getAll()
This commit is contained in:
parent
7dc5915db5
commit
e0032c090f
@ -16,6 +16,9 @@ exports.list = authHooks.failIfNotLoggedIn ->
|
||||
return application
|
||||
, [ 'ID', 'Name', 'Device Type', 'Online Devices', 'All Devices' ]
|
||||
|
||||
.catch (error) ->
|
||||
throw error
|
||||
|
||||
exports.info = authHooks.failIfNotLoggedIn (id) ->
|
||||
applicationModel.get(id).then (application) ->
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user