From 37b3f4120a04ddefa215642f5766e6dd3cb8d8ce Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Sun, 14 Sep 2014 18:22:47 -0400 Subject: [PATCH] Bump _problem_from_event's IQ by a couple of points. Signed-off-by: Jason Stephenson --- lib/NCIP/ILS/Evergreen.pm | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/NCIP/ILS/Evergreen.pm b/lib/NCIP/ILS/Evergreen.pm index 3cb590b..5ae3932 100644 --- a/lib/NCIP/ILS/Evergreen.pm +++ b/lib/NCIP/ILS/Evergreen.pm @@ -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' } -- 2.11.0