mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
Meaningful error when user wants to use 3D preview but didn't install the required modules.
This commit is contained in:
13
Build.PL
13
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__
|
||||
|
||||
Reference in New Issue
Block a user