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

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Ranellucci <aar@cpan.org>2013-09-16 12:18:42 +0400
committerAlessandro Ranellucci <aar@cpan.org>2013-09-16 12:18:42 +0400
commit5a9c163a2e65d46b952366a0f97fc4b4fd86c83f (patch)
treed02da5419569c149748496b44232a0d2283d4423 /Build.PL
parent7d09f178102e848687d3bda9e79c4a0ce7a23142 (diff)
Meaningful error when user wants to use 3D preview but didn't install the required modules.
Diffstat (limited to 'Build.PL')
-rw-r--r--Build.PL13
1 files changed, 9 insertions, 4 deletions
diff --git a/Build.PL b/Build.PL
index f75f71559..7fac4c2fe 100644
--- a/Build.PL
+++ b/Build.PL
@@ -124,10 +124,15 @@ EOF
system $cpanm, '--reinstall', './xs';
}
-if (eval "use App::Prove; 1" && !$missing_prereqs) {
- App::Prove->new->run;
+if ($missing_prereqs) {
+ exit 1;
+} else {
+ if (eval "use App::Prove; 1") {
+ App::Prove->new->run;
+ }
+ if (!defined $ARGV[0] && $ARGV[0] ne '--gui') {
+ print "If you also want to use the GUI you can now run `perl Build.PL --gui` to install the required modules.\n";
+ }
}
-exit 1 if $missing_prereqs;
-
__END__