Fix cat error handling

This commit is contained in:
Samuel Sloniker 2022-11-30 19:40:08 -08:00
parent e39b5381ac
commit 4b25f8f2bd
Signed by: kj7rrv
GPG Key ID: 1BB4029E66285A62

View File

@ -11,9 +11,9 @@ def get_app_class(template):
except OSError as e:
try:
os.listdir(file)
console.write_str(self.console, f"cat: {path}: Is a directory\n")
console.write_str(self.console, f"cat: {file}: Is a directory\n")
except OSError:
console.write_str(self.console, f"cat: {path}: No such file or directory\n")
console.write_str(self.console, f"cat: {file}: No such file or directory\n")
self.exit()