Permalink
Browse files

fix CATCH block

  • Loading branch information...
dwarring committed Apr 17, 2017
1 parent 224b496 commit 2402a2f30cd1d6d217e713b9686c1e41fcdb63ae
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/YAML.pm
View
@@ -7,10 +7,12 @@ use YAML::Dumper;
our $*VERSION = '0.01';
our sub dump($object) is export {
return YAML::Dumper.new.dump($object);
CATCH {
say "Error: $!";
default {
say "Error: $!";
}
}
YAML::Dumper.new.dump($object);
}
our sub load($yaml) is export {

0 comments on commit 2402a2f

Please sign in to comment.