use croak, not carp

releases
Yanick Champoux 2023-11-01 11:10:25 -04:00
parent fc89cb74d8
commit fe516b6b32
1 changed files with 2 additions and 2 deletions

View File

@ -45,13 +45,13 @@ sub add_type($self,$type,$definition={}) {
=head2 type($type)
Returns the type's C<Dancer2::Plugin::JsonApi::Registry::Type>. Throws an
Returns the type's C<Dancer2::Plugin::JsonApi::Registry::Schema>. Throws an
error if the type does not exist.
=cut
sub type($self,$type) {
return $self->types->{$type} || carp "type '$type' not found\n";
return $self->types->{$type} || croak "type '$type' not found";
}
1;