Skip to content

Commit 986942a

Browse files
committed
feat(messages): add custom payload JSON parse error messages
1 parent 9cb3eed commit 986942a

3 files changed

Lines changed: 23 additions & 1 deletion

File tree

_locales/de/messages.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,16 @@
5757
}
5858
}
5959
},
60+
"popupErrorCustomPayloadJsonParseError": {
61+
"message": "Fehler beim Parsen des benutzerdefinierten Payloads. Fehler: $error$",
62+
"description": "Fehler beim JSON Parsen.",
63+
"placeholders": {
64+
"error": {
65+
"content": "$1",
66+
"example": "Unexpected token in JSON at position 10"
67+
}
68+
}
69+
},
6070
"optionsTitle": {
6171
"message": "Webhook Konfiguration",
6272
"description": "Titel der Optionsseite."

_locales/en/messages.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,16 @@
5757
}
5858
}
5959
},
60+
"popupErrorCustomPayloadJsonParseError": {
61+
"message": "JSON Parse Error in Custom Payload! error: $error$",
62+
"description": "Error when JSON parsing fails.",
63+
"placeholders": {
64+
"error": {
65+
"content": "$1",
66+
"example": "Unexpected token in JSON at position 10"
67+
}
68+
}
69+
},
6070
"optionsTitle": {
6171
"message": "Webhook Configuration",
6272
"description": "Title of the options page."

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
"test": "jest",
1111
"lint": "web-ext lint",
1212
"build": "web-ext build --overwrite-dest",
13-
"run": "web-ext run"
13+
"run": "web-ext run",
14+
"start-firefox": "web-ext run --firefox-profile ~/.mozilla/firefox/ehxu5l3z.webhooks --keep-profile-changes --profile-create-if-missing",
15+
"start-chromium": "web-ext run --chromium-profile ~/.config/chromium/webhooks --keep-profile-changes --profile-create-if-missing"
1416
},
1517
"keywords": [],
1618
"author": "",

0 commit comments

Comments
 (0)