Subject: | YAML::Tiny->errstr is deprecated as of YAML::Tiny 1.57 |
https://metacpan.org/pod/YAML::Tiny#errstr-DEPRECATED
As of YAML::Tiny 1.57 the errstr method is deprecated, as read() will now throw an exception on error anyway.
My proposed fix is:
--- /opt/lokku/pkgs/perl-5.16.3/lib/site_perl/5.16.3/TAP/Harness/Archive.pm 2014-05-08 13:52:44.575594991 +0100
+++ Archive.pm 2014-05-08 13:52:39.063597078 +0100
@@ -341,7 +341,9 @@
# parse it into a structure
$meta = YAML::Tiny->new()->read($yaml_file);
- die "Could not read YAML $yaml_file: " . YAML::Tiny->errstr if YAML::Tiny->errstr;
+ if ($YAML::Tiny::VERSION < 1.57) {
+ die "Could not read YAML $yaml_file: " . YAML::Tiny->errstr if YAML::Tiny->errstr;
+ }
if($args->{meta_yaml_callback}) {
$args->{meta_yaml_callback}->($meta);