Skip to content

Commit

Permalink
include actual Range object in X::OutOfRange error from Date.new
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Feb 26, 2012
1 parent 9d39e88 commit c295b53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/Exceptions.pm
Expand Up @@ -41,7 +41,7 @@ my class X::OutOfRange is Exception {
has $.got = '<unknown>'; has $.got = '<unknown>';
has $.range = '<unknown>'; has $.range = '<unknown>';
method message() { method message() {
"$.what out of range. Is: $.got, should be in $.range" "$.what out of range. Is: $.got, should be in $.range.gist()"
} }
} }


Expand Down
2 changes: 1 addition & 1 deletion src/core/Temporal.pm
Expand Up @@ -95,7 +95,7 @@ my role Dateish {
or die X::OutOfRange.new( or die X::OutOfRange.new(
what => $name, what => $name,
got => $val, got => $val,
range => $range.perl, range => $range,
); );
} }


Expand Down

0 comments on commit c295b53

Please sign in to comment.