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

This commit is contained in:
Scott Nonnenberg 2017-11-08 17:32:33 -08:00 committed by GitHub
parent 9e6d50b966
commit 34dd375260
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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();