Log errors to console on command failure
This commit is contained in:
1 parent
eaf3b0a5ac
commit
72977b30b4
1 file changed
+1
@@ -781,6 +781,7 @@ export default class App extends Component {
|
|||||||
try {
|
try {
|
||||||
cmd(this, args);
|
cmd(this, args);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
console.error("Failed to execute command '" + name + "'", error);
|
||||||
this.setState({ error });
|
this.setState({ error });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user