]> Piment Noir Git Repositories - freqai-strategies.git/commitdiff
refactor: align error message
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 3 Sep 2025 17:44:28 +0000 (19:44 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 3 Sep 2025 17:44:28 +0000 (19:44 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
scripts/docker-upgrade.sh

index 19fb644136125ab4d0fdcc487949e3b23fa8548f..4ecc788d6785ab26207f026ae20c605869b998d7 100755 (executable)
@@ -115,10 +115,10 @@ send_telegram_message() {
         --data-urlencode "parse_mode=MarkdownV2" \
         --data "chat_id=$freqtrade_telegram_chat_id" \
         "https://api.telegram.org/bot${freqtrade_telegram_token}/sendMessage" 2>&1 1>/dev/null)
-        if [ $? -ne 0 ]; then
-            echo_timestamped "Error: failed to send telegram notification: $curl_error"
-            return 1
-        fi
+      if [ $? -ne 0 ]; then
+        echo_timestamped "Error: failed to send telegram message: $curl_error"
+        return 1
+      fi
     fi
 }