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,7 +21,10 @@
}
deserializer.deserialize();
} catch (e) {
onError(e);
console.error(e);
if (typeof onError === 'function') {
onError(e);
}
}
};