Fix cat error handling
This commit is contained in:
parent
e39b5381ac
commit
4b25f8f2bd
|
@ -11,9 +11,9 @@ def get_app_class(template):
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
try:
|
try:
|
||||||
os.listdir(file)
|
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:
|
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()
|
self.exit()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user