mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-07 10:01:14 -03:00
committed by
Johannes Altmanninger
parent
61dec20abd
commit
131febed2a
@@ -6,7 +6,7 @@
|
||||
fds::{BEST_O_SEARCH, wopen_dir},
|
||||
parser::ParserEnvSetMode,
|
||||
path::path_apply_cdpath,
|
||||
wutil::{normalize_path, wperror, wreadlink},
|
||||
wutil::{normalize_path, perror, wreadlink},
|
||||
};
|
||||
use errno::Errno;
|
||||
use libc::{EACCES, ELOOP, ENOENT, ENOTDIR, EPERM};
|
||||
@@ -168,7 +168,7 @@ pub fn cd(parser: &Parser, streams: &mut IoStreams, args: &mut [&wstr]) -> Built
|
||||
.appendln(&wgettext_fmt!("%s: Permission denied: '%s'", cmd, dir_in));
|
||||
} else {
|
||||
errno::set_errno(Errno(best_errno));
|
||||
wperror(L!("cd"));
|
||||
perror("cd");
|
||||
streams.err.appendln(&wgettext_fmt!(
|
||||
"%s: Unknown error trying to locate directory '%s'",
|
||||
cmd,
|
||||
|
||||
Reference in New Issue
Block a user