diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2013-09-16 12:18:42 +0400 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2013-09-16 12:18:42 +0400 |
commit | 5a9c163a2e65d46b952366a0f97fc4b4fd86c83f (patch) | |
tree | d02da5419569c149748496b44232a0d2283d4423 /Build.PL | |
parent | 7d09f178102e848687d3bda9e79c4a0ce7a23142 (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.PL | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -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__ |