Merge branch 'patch-1' into 'master'
Update soapbox.js to log soapbox.json parsing errors to the console. Fixes #171 Closes #171 See merge request soapbox-pub/soapbox-fe!66
This commit is contained in:
commit
9da7037fcf
1 changed files with 4 additions and 1 deletions
|
@ -21,9 +21,12 @@ export function importSoapboxConfig(soapboxConfig) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function soapboxConfigFail(error) {
|
export function soapboxConfigFail(error) {
|
||||||
|
if (!error.response) {
|
||||||
|
console.error('soapbox.json parsing error: ' + error);
|
||||||
|
}
|
||||||
return {
|
return {
|
||||||
type: SOAPBOX_CONFIG_REQUEST_FAIL,
|
type: SOAPBOX_CONFIG_REQUEST_FAIL,
|
||||||
error,
|
error,
|
||||||
skipAlert: true,
|
skipAlert: true,
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
|
|
Loading…
Reference in a new issue