Refactor uploads

This commit is contained in:
Jonathan Cremin 2016-05-25 21:03:07 +01:00
parent 75a46212da
commit f59b9a5d22
14 changed files with 297 additions and 269 deletions

View file

@ -46,7 +46,9 @@ router.use('*', function* authMiddleware(next) {
} else {
if (!err.status) {
debug(err);
this.raven.captureError(err);
if (this.raven) {
this.raven.captureError(err);
}
throw err;
} else {
this.status = err.status;