Fix uncaught exception: TypeError: Cannot read property 'id' of undefined

This commit is contained in:
Daniel García Aubert 2019-03-27 11:38:25 +01:00
parent 53b19d576c
commit 035acb343e

View File

@ -74,8 +74,8 @@ module.exports = class NamedMapMapConfigProvider extends BaseMapConfigProvider {
JSON.parse(this.config) :
this.config;
} catch (e) {
const error = new Error('malformed config parameter, should be a valid JSON');
this.err = error;
const err = new Error('malformed config parameter, should be a valid JSON');
this.err = err;
return callback(err);
}