Skip to content

Commit 3ccbc3d

Browse files
committed
make "appears nonfunctional" message more helpful
1 parent 2977973 commit 3ccbc3d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

lib/PDL/Graphics/Simple/Gnuplot.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ sub new {
124124
# Force a recheck on failure, in case the user fixed gnuplot.
125125
# Also loads PDL::Graphics::Gnuplot.
126126
unless(check()) {
127-
die "$mod->{shortname} appears nonfunctional\n" unless(check(1));
127+
die "$mod->{shortname} appears nonfunctional: $mod->{msg}\n" unless(check(1));
128128
}
129129

130130
# Generate the @params array to feed to gnuplot

lib/PDL/Graphics/Simple/PGPLOT.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ sub new {
104104
# Force a recheck on failure, in case the user fixed PGPLOT.
105105
# Also loads PDL::Graphics::PGPLOT::Window.
106106
unless(check()) {
107-
die "$mod->{shortname} appears nonfunctional\n" unless(check(1));
107+
die "$mod->{shortname} appears nonfunctional: $mod->{msg}\n" unless(check(1));
108108
}
109109

110110
# Figure the device name and size to feed to PGPLOT.

lib/PDL/Graphics/Simple/PLplot.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ sub new {
176176

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

182182
# Figure the device name and size to feed to PLplot.

lib/PDL/Graphics/Simple/Prima.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ sub new {
126126

127127

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

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

0 commit comments

Comments
 (0)