More informative error message.

This commit is contained in:
Sean Li 2015-02-13 11:26:28 -08:00
parent 913658fcdd
commit f9f2dc6191
2 changed files with 2 additions and 1 deletions

View File

@ -107,7 +107,7 @@ var Setup = React.createClass({
<h4>Installation Error</h4>
<h1>We&#39;re Sorry!</h1>
<p>There seems to have been an unexpected error with Kitematic:</p>
<p className="error">{this.state.error.message}</p>
<p className="error">{this.state.error}<br />{this.state.error.message}</p>
</div>
</div>
</div>

View File

@ -176,6 +176,7 @@ var SetupStore = assign(Object.create(EventEmitter.prototype), {
break;
} catch (err) {
if (err) {
console.log(err);
console.log(err.stack);
_error = err;
this.emit(this.ERROR_EVENT);