diff --git a/src/routes/apps.js b/src/routes/apps.js index ca8c15a93..1002b9a8a 100644 --- a/src/routes/apps.js +++ b/src/routes/apps.js @@ -62,7 +62,7 @@ var apps = require('../apps.js'), async function load(req, res, next) { assert.strictEqual(typeof req.params.id, 'string'); - const [error, result] = await apps.get(req.params.id); + const [error, result] = await safe(apps.get(req.params.id)); if (error) return next(BoxError.toHttpError(error)); req.resource = result;