mirror of
https://github.com/tildearrow/furnace.git
synced 2025-01-05 07:01:21 +00:00
Command line outputs: replace filename error message with C filesystem error string
This commit is contained in:
parent
ccda173a15
commit
c757be6ea2
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue