From c757be6ea2ffa4a87128f7cd373e64dac2da8ce0 Mon Sep 17 00:00:00 2001 From: bbbradsmith Date: Thu, 12 Dec 2024 15:45:42 -0500 Subject: [PATCH] Command line outputs: replace filename error message with C filesystem error string --- src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 6ab84eeaf..77454d11b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -862,7 +862,7 @@ int main(int argc, char** argv) { fwrite(w->getFinalBuf(),1,w->size(),f); fclose(f); } else { - reportError(fmt::sprintf(_("could not open file! (%s)"),cmdOutName.c_str())); + reportError(fmt::sprintf(_("could not open file! (%s)"),strerror(errno))); } w->finish(); delete w; @@ -878,7 +878,7 @@ int main(int argc, char** argv) { fwrite(w->getFinalBuf(),1,w->size(),f); fclose(f); } else { - reportError(fmt::sprintf(_("could not open file! (%s)"),vgmOutName.c_str())); + reportError(fmt::sprintf(_("could not open file! (%s)"),strerror(errno))); } w->finish(); delete w; @@ -900,7 +900,7 @@ int main(int argc, char** argv) { fwrite(w->getFinalBuf(),1,w->size(),f); fclose(f); } else { - reportError(fmt::sprintf(_("could not open file! (%s)"),txtOutName.c_str())); + reportError(fmt::sprintf(_("could not open file! (%s)"),strerror(errno))); } w->finish(); delete w;