From a9a6260f66af3f9f854b51fa37c6fa7b396a0eae Mon Sep 17 00:00:00 2001 From: bbbradsmith Date: Wed, 11 Dec 2024 15:43:20 -0500 Subject: [PATCH] command line output error should report filename, not e.getLastError (error is with fopen, not e) --- src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index a50c30e47..04e177c84 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)"),e.getLastError())); + reportError(fmt::sprintf(_("could not open file! (%s)"),cmdOutName.c_str())); } 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)"),e.getLastError())); + reportError(fmt::sprintf(_("could not open file! (%s)"),vgmOutName.c_str())); } 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)"),e.getLastError())); + reportError(fmt::sprintf(_("could not open file! (%s)"),txtOutName.c_str())); } w->finish(); delete w;