Fix of Cmd line output does not always show correct output file name #4872
This commit is contained in:
parent
263759aca6
commit
cc7eaef493
1 changed files with 6 additions and 3 deletions
|
@ -518,10 +518,13 @@ int CLI::run(int argc, char **argv)
|
||||||
outfile_final = sla_print.print_statistics().finalize_output_path(outfile);
|
outfile_final = sla_print.print_statistics().finalize_output_path(outfile);
|
||||||
sla_archive.export_print(outfile_final, sla_print);
|
sla_archive.export_print(outfile_final, sla_print);
|
||||||
}
|
}
|
||||||
if (outfile != outfile_final && Slic3r::rename_file(outfile, outfile_final)) {
|
if (outfile != outfile_final) {
|
||||||
|
if (Slic3r::rename_file(outfile, outfile_final)) {
|
||||||
boost::nowide::cerr << "Renaming file " << outfile << " to " << outfile_final << " failed" << std::endl;
|
boost::nowide::cerr << "Renaming file " << outfile << " to " << outfile_final << " failed" << std::endl;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
outfile = outfile_final;
|
||||||
|
}
|
||||||
boost::nowide::cout << "Slicing result exported to " << outfile << std::endl;
|
boost::nowide::cout << "Slicing result exported to " << outfile << std::endl;
|
||||||
} catch (const std::exception &ex) {
|
} catch (const std::exception &ex) {
|
||||||
boost::nowide::cerr << ex.what() << std::endl;
|
boost::nowide::cerr << ex.what() << std::endl;
|
||||||
|
|
Loading…
Reference in a new issue