Skip to content

Commit b539909

Browse files
committed
telegram-chat: also give a hint on failed syntax validation
... and drop the warning in log instead.
1 parent a073835 commit b539909

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

telegram-chat

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ $WaitFullyConnected;
114114
message=("Command:\n" . $Text . "\n\n" . $State . "Output:\n" . $Content) });
115115
/file/remove "tmpfs/telegram-chat";
116116
} else={
117-
$LogPrintExit2 warning $0 ("The command failed syntax validation: " . $Text) false;
117+
$SendTelegram2 ({ origin=$0; silent=false; \
118+
subject=([ $SymbolForNotification "speech-balloon" ] . "Telegram Chat"); \
119+
message=("Command:\n" . $Text . "\n\nThe command failed syntax validation!") });
118120
}
119121
}
120122
}

0 commit comments

Comments
 (0)