Be resilient to thrown non-errors in import process (#1737)
This commit is contained in:
parent
9e6d50b966
commit
34dd375260
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,7 @@
|
||||||
}.bind(this)).catch(function(error) {
|
}.bind(this)).catch(function(error) {
|
||||||
console.log('Error importing:', error && error.stack ? error.stack : error);
|
console.log('Error importing:', error && error.stack ? error.stack : error);
|
||||||
|
|
||||||
this.error = error.message;
|
this.error = error || new Error('Something went wrong!');
|
||||||
this.state = null;
|
this.state = null;
|
||||||
this.render();
|
this.render();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue