Bump _problem_from_event's IQ by a couple of points.
authorJason Stephenson <jason@sigio.com>
Sun, 14 Sep 2014 22:22:47 +0000 (18:22 -0400)
committerJason Stephenson <jason@sigio.com>
Sun, 14 Sep 2014 22:22:47 +0000 (18:22 -0400)
Signed-off-by: Jason Stephenson <jason@sigio.com>
lib/NCIP/ILS/Evergreen.pm

index 3cb590b..5ae3932 100644 (file)
@@ -1850,9 +1850,6 @@ sub _problem_from_event {
         unless ($type) {
             if ($textcode) {
                 $type = $textcode;
-            } else {
-                # Because we have to give them something.
-                $type = 'Temporary Processing Failure';
             }
         }
 
@@ -1876,8 +1873,8 @@ sub _problem_from_event {
 
     return NCIP::Problem->new(
         {
-            ProblemType => $type,
-            ProblemDetail => $detail,
+            ProblemType => ($type) ? $type : 'Temporary Processing Failure',
+            ProblemDetail => ($detail) ? $detail : 'Detail not available.',
             ProblemElement => ($element) ? $element : 'NULL',
             ProblemValue => ($value) ? $value : 'NULL'
         }