From 8b6a3084985380736a14c8c60003f113992d8555 Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Mon, 3 Mar 2014 10:36:17 +1300 Subject: [PATCH] Adding a bit better error handling when we get invalid XML --- lib/NCIP.pm | 1 + 1 file changed, 1 insertion(+) 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; -- 2.11.0