less should error when file doesn't exist

This commit is contained in:
Lisa Milne 2023-11-10 10:48:19 +10:00
parent 7031ee2d70
commit 7d87b9c216

View file

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