diff options
Diffstat (limited to 'lib/Eval/Closure.pm')
-rw-r--r-- | lib/Eval/Closure.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Eval/Closure.pm b/lib/Eval/Closure.pm index 0037337..f0457fd 100644 --- 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); |