mirror of
https://git.checksum.fail/alec/erythros
synced 2025-12-13 06:29:54 +02:00
System/Shell/Commands: Use original argv as pathname in error messages
This commit is contained in:
@@ -6,7 +6,7 @@ I64 @shell_cmd_ls_output(@shell* sh, U8* arg_path, I64 flags)
|
||||
U8 buf[512];
|
||||
U8* path = @shell_expand_relative_path(sh, arg_path);
|
||||
if (!FileSystem.PathExists(path)) {
|
||||
StrPrint(&buf, "ls: cannot access '%s': No such file or directory\n", path);
|
||||
StrPrint(&buf, "ls: cannot access '%s': No such file or directory\n", arg_path);
|
||||
Stdio.WriteLine(sh, &buf);
|
||||
Free(path);
|
||||
return 2;
|
||||
|
||||
Reference in New Issue
Block a user