diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-11-25 04:10:04 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-11-25 04:10:04 +0100 |
commit | 01b770e5f171a440f01cb9a9b2d974e9c8c82690 (patch) | |
tree | 618eddef2d3ee1468733907ca0c36b383c47b669 /loader | |
parent | 2eec1c1e4c383c64cafe2e2f23fbc9aa1b96ccbf (diff) |
a
Diffstat (limited to 'loader')
-rw-r--r-- | loader/filesystem.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/loader/filesystem.cpp b/loader/filesystem.cpp index a7926da1..65878209 100644 --- a/loader/filesystem.cpp +++ b/loader/filesystem.cpp @@ -31,9 +31,10 @@ bool loader_impl::chdir(StringView pathname) #endif if (ret) { + auto error = errno; Error err; err << "chdir: can't change directory to" << pathname << Error::nospace << ":"; - Corrade::Utility::Implementation::printErrnoErrorString(err, errno); + Corrade::Utility::Implementation::printErrnoErrorString(err, error); } return !ret; } |