Skip to content

Commit

Permalink
Version 1.001001
Browse files Browse the repository at this point in the history
  • Loading branch information
ashb committed May 16, 2009
1 parent d3e0903 commit 27eddea
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Changes
@@ -1,7 +1,9 @@
Version history for TryCatch perl module:

1.001001 - 2009/05/16
- Fix bug with nested try+die (Reported by Possum)
As a result of this $@ will not have the value of the exception visible
- Fix compile issues on 5.8.6 by using ppport.h

1.001000 - 2009/04/26 - 01:01
- Fix bug where catch block would get run sometimes when it shouldn't
Expand Down
4 changes: 3 additions & 1 deletion README
Expand Up @@ -6,8 +6,10 @@ SYNOPSIS
use TryCatch;

sub foo {
my ($self) = @_;

try {
# some code that might die
die Some::Class->new(code => 404 ) if $self->not_found;
return "return value from foo";
}
catch (Some::Class $e where { $_->code > 100 } ) {
Expand Down
2 changes: 1 addition & 1 deletion lib/TryCatch.pm
Expand Up @@ -17,7 +17,7 @@ use XSLoader;
use base qw/Devel::Declare::Context::Simple/;


our $VERSION = '1.001000';
our $VERSION = '1.001001';

# These are private state variables. Mess with them at your peril
our ($CHECK_OP_HOOK, $CHECK_OP_DEPTH) = (undef, 0);
Expand Down

0 comments on commit 27eddea

Please sign in to comment.