strict;
use utf8;
use warnings;
use warnings qw(FATAL utf8); # Fatalize encoding glitches.
use JSON::XS;
use Try::Tiny;
# We don't use Moo because we isa CGI::Snapp.
our $VERSION = '2.04';
# --
hes: " . scalar @$response);
# Warning: Do not use ... new -> utf8 -> encode...
$response = JSON::XS -> new -> encode($response);
$self -> param('db') -> simple -> commit;
}
catch
{
my($
log the error despite the error.
$self -> log(error => "System error: $error");
$response = JSON::XS -> new -> encode([$self -> param('system_error')]);
};
return $response;
} # End of displ