projects
/
gitmo/Eval-Closure.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
18b5b42
)
better error message
Jesse Luehrs [Wed, 20 Oct 2010 20:43:36 +0000 (15:43 -0500)]
lib/Eval/Closure.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Eval/Closure.pm
b/lib/Eval/Closure.pm
index
0037337
..
f0457fd
100644
(file)
--- a/
lib/Eval/Closure.pm
+++ b/
lib/Eval/Closure.pm
@@
-62,8
+62,9
@@
sub _clean_eval_closure {
my $e = $@;
if (!ref($code) || ref($code) ne 'CODE') {
+ $e = "The 'source' parameter must return a subroutine reference, "
+ . "not $code";
undef $code;
- $e = "The 'source' parameter must return a subroutine reference";
}
return ($code, $e);