Skip to content

Commit d812d90

Browse files
author
Robert Jackson
authored
Handle resilient mode errors in catch
1 parent 14998ec commit d812d90

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@ function fastbootExpressMiddleware(distPath, options) {
5757
res.end();
5858
}
5959
} catch (error) {
60-
if (error.name === 'UnrecognizedURLError') {
60+
if (result.error) {
61+
log('RESILIENT MODE CAUGHT:', result.error.stack);
62+
next(result.error);
63+
return;
64+
} else if (error.name === 'UnrecognizedURLError') {
6165
next();
6266
} else {
6367
res.status(500);

0 commit comments

Comments
 (0)