diff options
| author | Heber Leonard <heber.leonard2@gmail.com> | 2025-04-06 11:13:28 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-06 11:13:28 -0300 |
| commit | 09f6079cb7a0d1142e81b85c218571237d6fc540 (patch) | |
| tree | 751c6cc8d1cca249dcbc7a3bc44a1e068b592541 | |
| parent | 5c3fd03ca8af026413d0ea58de03bcedd7b56a79 (diff) | |
Update 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(); |
