Skip to content

Commit

Permalink
command line output error should report filename, not e.getLastError …
Browse files Browse the repository at this point in the history
…(error is with fopen, not e)
  • Loading branch information
bbbradsmith committed Dec 11, 2024
1 parent d0f4f97 commit 0de47c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 0de47c1

Please sign in to comment.