Skip to content

Commit

Permalink
Update packages/node/src/handlers.ts
Browse files Browse the repository at this point in the history
Co-Authored-By: Daniel Griesser <[email protected]>
  • Loading branch information
kamilogorek and HazAT authored Jul 5, 2019
1 parent 3e8d052 commit 874610f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/node/src/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ function getStatusCodeFromResponse(error: MiddlewareError): number {
return statusCode ? parseInt(statusCode as string, 10) : 500;
}

/** JSDoc */
/** Returns true if response code is internal server error */
function defaultShouldHandleError(error: MiddlewareError): boolean {
const status = getStatusCodeFromResponse(error);
return status >= 500;
Expand Down

0 comments on commit 874610f

Please sign in to comment.