mirror of
https://codeberg.org/TicklishHoneyBee/CLIte.git
synced 2026-03-11 09:04:37 +00:00
less should error when file doesn't exist
This commit is contained in:
parent
7031ee2d70
commit
7d87b9c216
1 changed files with 5 additions and 0 deletions
|
|
@ -326,6 +326,11 @@ Options:
|
|||
}
|
||||
|
||||
var fd = stdio.open(file,prepFile);
|
||||
if (!fd) {
|
||||
io.error('could not open file: '+file);
|
||||
io.exit(1);
|
||||
return;
|
||||
}
|
||||
|
||||
var tty = term.createTTY();
|
||||
tty.setRaw(false);
|
||||
|
|
|
|||
Loading…
Reference in a new issue