Skip to content

Commit 6dfa574

Browse files
authored
Fix: monitor(tailscale): Check exit code before failing on stderr output (#6309)
1 parent 08d77e6 commit 6dfa574

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/monitor-types/tailscale-ping.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class TailscalePing extends MonitorType {
3131
timeout: timeout,
3232
encoding: "utf8",
3333
});
34-
if (res.stderr && res.stderr.toString()) {
34+
if (res.stderr && res.stderr.toString() && res.code !== 0) {
3535
throw new Error(`Error in output: ${res.stderr.toString()}`);
3636
}
3737
if (res.stdout && res.stdout.toString()) {

0 commit comments

Comments
 (0)