Fix (error) always reply with an error #oops

We had a case where reply would never be called. This could case a
server hang.
This commit is contained in:
Joey Baker 2016-09-04 17:25:57 -07:00
parent 79c6a81a3a
commit b032be20d1

View File

@ -20,8 +20,9 @@ export default (target, key, descriptor) => {
error.reformat(); error.reformat();
} }
reply(error);
} }
reply(error);
} else if (!e.isBoom) { } else if (!e.isBoom) {
const { message } = e; const { message } = e;
let err; let err;