Skip to content

Commit 1427e45

Browse files
committed
error-reporting: Address unresponsive Hapi apps
The Hapi plugin was too restrictive when determining if it should continue a reply, which could cause some Hapi apps to become unresponsive.
1 parent b1fbd2e commit 1427e45

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/error-reporting/src/interfaces

packages/error-reporting/src/interfaces/hapi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function makeHapiPlugin(client, config) {
9292
client.sendError(em);
9393
}
9494

95-
if (isObject(reply) && isFunction(reply.continue)) {
95+
if (reply && isFunction(reply.continue)) {
9696
reply.continue();
9797
}
9898
});

0 commit comments

Comments
 (0)