We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11206de commit fcb66a1Copy full SHA for fcb66a1
packages/monitoring-server/src/monitoring-server.ts
@@ -13,7 +13,12 @@ export class MonitoringServer implements IMonitoringServer {
13
let ok = true;
14
15
if (this.options.validator) {
16
- ok = await this.options.validator();
+ try {
17
+ ok = await this.options.validator();
18
+ } catch (_e) {
19
+ res.statusCode = 500;
20
+ res.end();
21
+ }
22
}
23
24
res.setHeader("Content-type", "text/plain");
0 commit comments