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) { 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);