aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-02-01 11:23:25 +0100
committerGravatar Christian Hesse <mail@eworm.de>2023-02-01 11:29:56 +0100
commitb5399099c6bd01b46cb1e6d0074a0d8b0715d707 (patch)
treeeb78e99ce6bcfadee27422bc4cc8e6a6c90630eb
parenta07383566755a30fc03374f2bc83d78d3f6dad54 (diff)
telegram-chat: also give a hint on failed syntax validation
... and drop the warning in log instead.
-rw-r--r--telegram-chat4
1 files changed, 3 insertions, 1 deletions
diff --git a/telegram-chat b/telegram-chat
index 1c10fcd..da3f0e5 100644
--- a/telegram-chat
+++ b/telegram-chat
@@ -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!") });
}
}
}