Be resilient to thrown non-errors in import process (#1737)

This commit is contained in:
Scott Nonnenberg
2017-11-08 17:32:33 -08:00
committed by GitHub
parent 9e6d50b966
commit 34dd375260

View File

@@ -147,7 +147,7 @@
}.bind(this)).catch(function(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.render();