Fix lookupuser problem reporting in Evergreen driver.
authorJason Stephenson <jason@sigio.com>
Sun, 24 Aug 2014 02:25:08 +0000 (22:25 -0400)
committerJason Stephenson <jason@sigio.com>
Sun, 24 Aug 2014 02:25:08 +0000 (22:25 -0400)
Actually set the response object's problem member if we fail to
look up the user.

Signed-off-by: Jason Stephenson <jason@sigio.com>
lib/NCIP/ILS/Evergreen.pm

index 158ec5f..4fb15e8 100644 (file)
@@ -142,6 +142,7 @@ sub lookupuser {
         $problem->ProblemDetail("User with barcode $barcode unknown");
         $problem->ProblemElement('AuthenticationInputData');
         $problem->ProblemValue($barcode);
+        $response->problem($problem);
         return $response;
     }