[librecat-dev] error logging of route file
Patrick Hochstenbach
Patrick.Hochstenbach at UGent.be
Thu Jun 14 10:26:30 CEST 2018
Hi,
You won’t see anything in the browser because there is nothing defined in your LibreCat::App::Catalog::Route::coverpage that is conneceted to a route (URL).
Here is a minimal route that will fail:
package LibreCat::App::Catalogue::Route::coverpage;
use Catmandu::Sane;
use Dancer qw/:syntax/;
get '/foo' => sub {
die "Oops";
return "hello world!";
};
1;
When you set in .boot.sh 'plackup -E development’ and create a environment/development.yml with the parameters you provided. You should be able to see the errors
in the browser.
Cheers,
Patrick
> On 13 Jun 2018, at 09:54, Jonathan NORRIS <jnorris at ist.ac.at> wrote:
>
>
> use Catmandu::Sane;
> use Catmandu qw(export_to_string);
> use Dancer ':syntax';
> use Dancer::Plugin::Auth::Tiny;
> use Dancer::Plugin::StreamData;
> use LibreCat::App::Helper;
> use LibreCat::App::Catalogue::Controller::Permission;
> use DateTime;
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.uni-bielefeld.de/mailman2/unibi/public/librecat-dev/attachments/20180614/802fc559/attachment.asc>
More information about the librecat-dev
mailing list