Fix: monitor(tailscale): Check exit code before failing on stderr output (#6309)

pull/6286/head
Osman Karagöz 6 months ago committed by GitHub
parent 08d77e6fce
commit 6dfa574e36
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -31,7 +31,7 @@ class TailscalePing extends MonitorType {
timeout: timeout,
encoding: "utf8",
});
if (res.stderr && res.stderr.toString()) {
if (res.stderr && res.stderr.toString() && res.code !== 0) {
throw new Error(`Error in output: ${res.stderr.toString()}`);
}
if (res.stdout && res.stdout.toString()) {

Loading…
Cancel
Save