Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Localize $TryCatch::Exception to prevent exceptions being handled aft…

…er the current try/catch block
  • Loading branch information...
commit 802e217cf38ce73d18fe372ac86e7e473348755c 1 parent c356211
@pmakholm authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/TryCatch.pm
View
2  lib/TryCatch.pm
@@ -115,7 +115,7 @@ sub injected_try_code {
return @STATE > 1
? 'local $TryCatch::CTX = Scope::Upper::HERE; eval {' # Nested case
- : 'local $@; eval {'
+ : 'local $@; local $TryCatch::Exception; eval {'
}
sub injected_after_try {
Please sign in to comment.
Something went wrong with that request. Please try again.