Catch errors from applicationModel.getAll()

This commit is contained in:
Juan Cruz Viotti 2014-11-19 12:15:39 -04:00
parent 7dc5915db5
commit e0032c090f

View File

@ -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) ->