fix for undefined?
This commit is contained in:
parent
827d24742b
commit
720d3a647f
1 changed files with 2 additions and 2 deletions
|
|
@ -167,8 +167,8 @@ const handle_enter = function () {
|
||||||
if (value.description) {
|
if (value.description) {
|
||||||
value = value.description;
|
value = value.description;
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (exception) {
|
||||||
value = e.message;
|
value = exception ? exception.message : undefined;
|
||||||
}
|
}
|
||||||
command_history_element.innerText += value.toString() + "\n";
|
command_history_element.innerText += value.toString() + "\n";
|
||||||
command_history.push(command);
|
command_history.push(command);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue