Skip to content

Commit

Permalink
Merge branch 'docs/fix-d2-core-error-usage'
Browse files Browse the repository at this point in the history
  • Loading branch information
cromedome committed Jul 25, 2023
2 parents d0790bc + 7e3de03 commit 7a6c10a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
[ ENHANCEMENTS ]

[ DOCUMENTATION ]
* GH #1669: Show correct usage of Dancer2::Core::Error (GeekRuthie)
* GH #1674: Fix POD for input_handle() (mauke)

0.400001 2023-02-05 18:41:48-05:00 America/New_York
Expand Down
1 change: 1 addition & 0 deletions lib/Dancer2.pm
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ We are also on IRC: #dancer on irc.perl.org.
Fayland Lam
ferki
Gabor Szabo
GeekRuthie
geistteufel
Gideon D'souza
Gil Magno
Expand Down
3 changes: 1 addition & 2 deletions lib/Dancer2/Core/Error.pm
Original file line number Diff line number Diff line change
Expand Up @@ -475,15 +475,14 @@ __END__
=head1 SYNOPSIS
# taken from send_file:
use Dancer2::Core::Error;
my $error = Dancer2::Core::Error->new(
status => 404,
message => "No such file: `$path'"
);
Dancer2::Core::Response->set($error->render);
$error->throw;
=head1 DESCRIPTION
Expand Down

0 comments on commit 7a6c10a

Please sign in to comment.