Log errors to console on command failure
This commit is contained in:
parent
eaf3b0a5ac
commit
72977b30b4
1 changed files with 1 additions and 0 deletions
|
@ -781,6 +781,7 @@ export default class App extends Component {
|
|||
try {
|
||||
cmd(this, args);
|
||||
} catch (error) {
|
||||
console.error("Failed to execute command '" + name + "'", error);
|
||||
this.setState({ error });
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue