From 7170b347dbb3f00a294517df075a02da1acdea27 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sat, 21 Jul 2012 15:43:15 +0200 Subject: [PATCH] Do not prevent validation errors to launch the GUI --- slic3r.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/slic3r.pl b/slic3r.pl index cfd8da182..2ae7710e4 100755 --- a/slic3r.pl +++ b/slic3r.pl @@ -73,7 +73,9 @@ die $@ if $@ && $opt{gui}; Slic3r::Config->set($_ => $cli_options{$_}) for keys %cli_options; # validate configuration, convert options like --print-center to arrayrefs, init extruders etc. -Slic3r::Config->validate; +# ignore errors if we're launching the GUI +eval { Slic3r::Config->validate }; +die $@ unless $gui; # save configuration Slic3r::Config->save($opt{save}) if $opt{save};