[IMP] playground: log error in console

This commit is contained in:
Géry Debongnie
2019-06-26 15:49:17 +02:00
parent 16bbb8bc9f
commit ee63f6bb0f
+2
View File
@@ -200,6 +200,8 @@ class App extends owl.Component {
} catch (e) { } catch (e) {
//probably problem with the templates //probably problem with the templates
error = e; error = e;
// we still log the error, always useful to have it available
console.error(e);
} }
if (error) { if (error) {
this.displayError(error.message); this.displayError(error.message);