log errors when Deserialize fails

This commit is contained in:
juliandescottes 2017-01-29 14:18:59 +01:00
parent a25648f8e2
commit e04fde7084

View File

@ -21,8 +21,11 @@
}
deserializer.deserialize();
} catch (e) {
console.error(e);
if (typeof onError === 'function') {
onError(e);
}
}
};
ns.Deserializer.prototype.deserialize = function () {