projects
/
p5sagit/p5-mst-13.2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Thou shalt not (just) match for English error messages.
[p5sagit/p5-mst-13.2.git]
/
jpl
/
JNI
/
JNI.pm
diff --git
a/jpl/JNI/JNI.pm
b/jpl/JNI/JNI.pm
index
c3ade26
..
cee1779
100644
(file)
--- a/
jpl/JNI/JNI.pm
+++ b/
jpl/JNI/JNI.pm
@@
-198,7
+198,7
@@
sub AUTOLOAD {
($constname = $AUTOLOAD) =~ s/.*:://;
my $val = constant($constname, @_ ? $_[0] : 0);
if ($! != 0) {
- if ($! =~ /Invalid/) {
+ if ($! =~ /Invalid/ || $!{EINVAL}) {
$AutoLoader::AUTOLOAD = $AUTOLOAD;
goto &AutoLoader::AUTOLOAD;
}