mirror of
https://github.com/Hilbis/Hilbish
synced 2025-04-21 21:13:22 +00:00
Compare commits
2 Commits
bc4e0f835f
...
afcc6fe63a
Author | SHA1 | Date | |
---|---|---|---|
|
afcc6fe63a | ||
|
a6a3962044 |
@ -35,9 +35,11 @@ func cd(L *lua.LState) int {
|
||||
switch e := err.(*os.PathError).Err.Error(); e {
|
||||
case "no such file or directory":
|
||||
LuaErr(L, 1)
|
||||
case "not a directory":
|
||||
LuaErr(L, 2)
|
||||
default:
|
||||
fmt.Printf("Found unhandled error case: %s", e)
|
||||
fmt.Printf("Report this at https://github.com/Hilbis/Hilbish/issues with the title being: \"fs: unahndled error case %s\", and show what caused it.\n", e)
|
||||
fmt.Printf("Found unhandled error case: %s\n", e)
|
||||
fmt.Printf("Report this at https://github.com/Rosettea/Hilbish/issues with the title being: \"fs: unhandled error case %s\", and show what caused it.\n", e)
|
||||
LuaErr(L, 213)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user