mirror of https://github.com/keeweb/keeweb.git
better config error handling
This commit is contained in:
parent
1195408b1d
commit
5f2eea2c29
|
@ -59,7 +59,8 @@ const AppModel = Backbone.Model.extend({
|
|||
xhr.addEventListener('load', () => {
|
||||
let response = xhr.response;
|
||||
if (!response) {
|
||||
this.appLogger.error('Error loading app config', xhr.statusText);
|
||||
const errorDesc = xhr.statusText === 'OK' ? 'Malformed JSON' : xhr.statusText;
|
||||
this.appLogger.error('Error loading app config', errorDesc);
|
||||
return callback(true);
|
||||
}
|
||||
if (typeof response === 'string') {
|
||||
|
|
Loading…
Reference in New Issue