Skip to content

Commit

Permalink
make "appears nonfunctional" message more helpful
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Mar 27, 2024
1 parent cd4e57d commit a0c1afb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/PDL/Graphics/Simple/Gnuplot.pm
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ sub new {
# Force a recheck on failure, in case the user fixed gnuplot.
# Also loads PDL::Graphics::Gnuplot.
unless(check()) {
die "$mod->{shortname} appears nonfunctional\n" unless(check(1));
die "$mod->{shortname} appears nonfunctional: $mod->{msg}\n" unless(check(1));
}

# Generate the @params array to feed to gnuplot
Expand Down
2 changes: 1 addition & 1 deletion lib/PDL/Graphics/Simple/PGPLOT.pm
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ sub new {
# Force a recheck on failure, in case the user fixed PGPLOT.
# Also loads PDL::Graphics::PGPLOT::Window.
unless(check()) {
die "$mod->{shortname} appears nonfunctional\n" unless(check(1));
die "$mod->{shortname} appears nonfunctional: $mod->{msg}\n" unless(check(1));
}

# Figure the device name and size to feed to PGPLOT.
Expand Down
2 changes: 1 addition & 1 deletion lib/PDL/Graphics/Simple/PLplot.pm
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ sub new {

# Force a recheck on failure, in case the user fixed PLplot.
unless(check()) {
die "$mod->{shortname} appears nonfunctional\n" unless(check(1));
die "$mod->{shortname} appears nonfunctional: $mod->{msg}\n" unless(check(1));
}

# Figure the device name and size to feed to PLplot.
Expand Down
2 changes: 1 addition & 1 deletion lib/PDL/Graphics/Simple/Prima.pm
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ sub new {


unless( check() ) {
die "$mod->{shortname} appears nonfunctional\n" unless(check(1));
die "$mod->{shortname} appears nonfunctional: $mod->{msg}\n" unless(check(1));
}

my $size = PDL::Graphics::Simple::_regularize_size($opt->{size},'px');
Expand Down

0 comments on commit a0c1afb

Please sign in to comment.