diff options
Diffstat (limited to 'scripts/main.js')
| -rw-r--r-- | scripts/main.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/main.js b/scripts/main.js index 13ac789..a638a61 100644 --- a/scripts/main.js +++ b/scripts/main.js @@ -103,7 +103,7 @@ async function getInputValue(){ } else{ falseValue(value); - createText(`command not found: ${value}`) + createErrorText(`command not found: ${value}`) } } @@ -152,4 +152,10 @@ function createCode(code, text){ app.appendChild(p); } -open_terminal();
\ No newline at end of file +function createErrorText(text) { + const p = document.createElement("p"); + p.innerText = text; + app.appendChild(p); +} + +open_terminal(); |
