Adding a bit better error handling when we get invalid XML
authorChris Cormack <chrisc@catalyst.net.nz>
Sun, 2 Mar 2014 21:36:17 +0000 (10:36 +1300)
committerChris Cormack <chrisc@catalyst.net.nz>
Sun, 2 Mar 2014 21:36:17 +0000 (10:36 +1300)
lib/NCIP.pm

index a267a30..bf23910 100644 (file)
@@ -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;