fix for undefined?

This commit is contained in:
Sander Hautvast 2021-03-05 18:55:50 +01:00
parent 827d24742b
commit 720d3a647f

View file

@ -167,8 +167,8 @@ const handle_enter = function () {
if (value.description) {
value = value.description;
}
} catch (e) {
value = e.message;
} catch (exception) {
value = exception ? exception.message : undefined;
}
command_history_element.innerText += value.toString() + "\n";
command_history.push(command);