Skip to content
This repository has been archived by the owner on May 28, 2022. It is now read-only.

Commit

Permalink
fix CATCH block
Browse files Browse the repository at this point in the history
  • Loading branch information
dwarring committed Apr 17, 2017
1 parent 224b496 commit 2402a2f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/YAML.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 2402a2f

Please sign in to comment.