diff --git a/popup.js b/popup.js index 1e3fcaca..824ffbde 100644 --- a/popup.js +++ b/popup.js @@ -593,13 +593,11 @@ EN_US.set(400, 'Server said this request was invalid"') .set(429, 'You have submitted too many sponsor times for this one video, are you sure there are this many?') .set(409, 'This has already been submitted before') .set(502, 'It seems the server is down. Contact the dev to inform them.') - .set('Unknown', 'here was an error submitting your sponsor times, please try again later.'); + .set('Unknown', 'there was an error submitting your sponsor times, please try again later.'); function ErrorParser (Lang, statusCode) { if(Lang.has(statusCode)) return Lang.get(statusCode); - Unknown = Lang.get('Unknown'); - Unknown += Error code " + statusCode; - return Lang.get('Unknown'); + return Lang.get('Unknown').concat(" Error code: ") + statusCode; } function submitTimes() {