diff options
author | bubnikv <bubnikv@gmail.com> | 2017-12-05 17:54:24 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2017-12-05 17:54:24 +0300 |
commit | 8746f84fa2b8585270d36b4070693a188e722e33 (patch) | |
tree | 57911751a90b09366524563e803437cbc4dcfe6f /slic3r.pl | |
parent | 1244fd09eba10f301278778dc9d10e0b752b8c76 (diff) |
Improved error reporting of the PlaceholderParser.
The PlaceholderParser is currently used by the GCode.cpp
and by Printer.cpp to generate a new name for the exported G-code or SVG file.
The PlaceholderParser::process() will throw a runtime_error with
a comprehensive error message.
The G-code export will include these error messages into the G-code text
with !!!!!! separators, and the GUI will inform the user, that the G-code
export failed.
Diffstat (limited to 'slic3r.pl')
-rwxr-xr-x | slic3r.pl | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -219,6 +219,8 @@ if (@ARGV) { # slicing from command line $sprint->export_svg; } else { my $t0 = [gettimeofday]; + # The following call may die if the output_filename_format template substitution fails, + # if the file cannot be written into, or if the post processing scripts cannot be executed. $sprint->export_gcode; # output some statistics |