A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy injectors to reality checkers. Each agent is a specialized expert with personality, processes, and proven deliverables.
Shell
fix(backups): preserve failure messages in alert JSON
Rudy Celekli61c75eede01f
diff --git a/support/support-infrastructure-maintainer.md b/support/support-infrastructure-maintainer.mdindex 77508dc9..090da915 100644--- a/support/support-infrastructure-maintainer.md+++ b/support/support-infrastructure-maintainer.md@@ -305,9 +305,11 @@ handle_error() {local error_message="$1"log "ERROR: $error_message"- # Send notification+ # Encode the message as JSON data: backup paths can contain quotes or newlines.+ local payload+ payload=$(python3 -c 'import json, sys; print(json.dumps({"text": "🚨 Backup Failed: " + sys.argv[1]}))' "$error_message")curl -X POST -H 'Content-type: application/json' \- --data "{\"text\":\"🚨 Backup Failed: $error_message\"}" \+ --data "$payload" \"$NOTIFICATION_WEBHOOK"exit 1