From 76b620a80269101cacf1538e2413047368560df7 Mon Sep 17 00:00:00 2001 From: Curtis Date: Tue, 9 Jun 2020 23:53:35 +0000 Subject: [PATCH] Update soapbox.js to log soapbox.json parsing errors to the console. Fixes #171 Removed unnecessary semicolon at end of file --- app/soapbox/actions/soapbox.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/soapbox/actions/soapbox.js b/app/soapbox/actions/soapbox.js index ca894a8dd..3faca2028 100644 --- a/app/soapbox/actions/soapbox.js +++ b/app/soapbox/actions/soapbox.js @@ -21,9 +21,12 @@ export function importSoapboxConfig(soapboxConfig) { } export function soapboxConfigFail(error) { + if (!error.response) { + console.error('soapbox.json parsing error: ' + error); + } return { type: SOAPBOX_CONFIG_REQUEST_FAIL, error, skipAlert: true, }; -}; +}