diff options
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; } |