From: Chris Cormack Date: Sun, 2 Mar 2014 21:36:17 +0000 (+1300) Subject: Adding a bit better error handling when we get invalid XML X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8b6a3084985380736a14c8c60003f113992d8555;p=working%2FNCIPServer.git Adding a bit better error handling when we get invalid XML --- diff --git a/lib/NCIP.pm b/lib/NCIP.pm index a267a30..bf23910 100644 --- a/lib/NCIP.pm +++ b/lib/NCIP.pm @@ -157,6 +157,7 @@ sub _error { my $error_detail = shift; my $vars; $vars->{'error_detail'} = $error_detail; + $vars->{'messagetype'} = 'ItemRequestedResponse'; # No idea what this type should be my $template = Template->new( { INCLUDE_PATH => $self->config->('NCIP.templates.value'), } ); my $output;