Skip to content

Commit

Permalink
telegram-chat: also give a hint on failed syntax validation
Browse files Browse the repository at this point in the history
... and drop the warning in log instead.
  • Loading branch information
eworm-de committed Feb 1, 2023
1 parent a073835 commit b539909
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion telegram-chat
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ $WaitFullyConnected;
message=("Command:\n" . $Text . "\n\n" . $State . "Output:\n" . $Content) });
/file/remove "tmpfs/telegram-chat";
} else={
$LogPrintExit2 warning $0 ("The command failed syntax validation: " . $Text) false;
$SendTelegram2 ({ origin=$0; silent=false; \
subject=([ $SymbolForNotification "speech-balloon" ] . "Telegram Chat"); \
message=("Command:\n" . $Text . "\n\nThe command failed syntax validation!") });
}
}
}
Expand Down

0 comments on commit b539909

Please sign in to comment.