Add more debug output to worker

This commit is contained in:
Jonathan Cremin 2017-11-11 19:51:39 +00:00
parent 82fa61f5d5
commit 46142d12de
2 changed files with 9 additions and 3 deletions

View file

@ -54,7 +54,8 @@ export default function* () {
this.body = share;
} catch (e) {
this.throw(400, { error: { message: 'Unexpected error looking up music. Please try again later.' } });
debug(e);
this.throw(500, { error: { message: 'Unexpected error looking up music. Please try again later.' } });
throw e;
}
}