Subject: | Doesnt handle 404 correctly? |
Hi there
By change i put the wrong url in to my model based on your Model::REST
This is the error i receive from catalyst
---
Caught exception in LanPOS::Controller::registration->initlan "Attribute
(data) does not pass the type constraint because: Validation failed for
'HashRef' with value undef at /usr/share/perl5/Catalyst/Model/REST.pm
line 84
---
my sub routine is basically
---
sub get_events {
my $self = shift;
my $res = $self->get('lans', {});
my $code = $res->code;
die "Couldn't get the lans list, code was $code"
unless $code == 200;
my $data = $res->data;
---
Thank you for writing this module, it has been very helpful thus far!