Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

_load_string: Save $@ so we don't generate misleading error messages if ... #31

Merged
merged 1 commit into from

2 participants

@hillu

...$@ is clobbered. This fixes #30.

@karenetheridge

Unfortunately, travis shows test failures, e.g.:

t/01_api.t .............. Global symbol "$err" requires explicit package name at /home/travis/build/Perl-Toolchain-Gang/YAML-Tiny/lib/YAML/Tiny.pm line 297.
@hillu
@karenetheridge karenetheridge merged commit 551ad71 into Perl-Toolchain-Gang:devel
@karenetheridge

released in 1.63.
and thank you!

@hillu hillu deleted the unknown repository branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 11, 2014
  1. @hillu
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 4 deletions.
  1. +5 −4 lib/YAML/Tiny.pm
View
9 lib/YAML/Tiny.pm
@@ -294,10 +294,11 @@ Did you decode with lax ":utf8" instead of strict ":encoding(UTF-8)"?
}
}
};
- if ( ref $@ eq 'SCALAR' ) {
- $self->_error(${$@});
- } elsif ( $@ ) {
- $self->_error($@);
+ my $err = $@;
+ if ( ref $err eq 'SCALAR' ) {
+ $self->_error(${$err});
+ } elsif ( $err ) {
+ $self->_error($err);
}
return $self;
Something went wrong with that request. Please try again.