Skip to content

Commit

Permalink
log errors when Deserialize fails
Browse files Browse the repository at this point in the history
  • Loading branch information
juliandescottes committed Jan 29, 2017
1 parent a25648f commit e04fde7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/js/utils/serialization/Deserializer.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
}
deserializer.deserialize();
} catch (e) {
onError(e);
console.error(e);
if (typeof onError === 'function') {
onError(e);
}
}
};

Expand Down

0 comments on commit e04fde7

Please sign in to comment.