Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2017-12-05 17:54:24 +0300
committerbubnikv <bubnikv@gmail.com>2017-12-05 17:54:24 +0300
commit8746f84fa2b8585270d36b4070693a188e722e33 (patch)
tree57911751a90b09366524563e803437cbc4dcfe6f /slic3r.pl
parent1244fd09eba10f301278778dc9d10e0b752b8c76 (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-xslic3r.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/slic3r.pl b/slic3r.pl
index afddc77d3..c2bee2219 100755
--- a/slic3r.pl
+++ b/slic3r.pl
@@ -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