TexasDigitalLibrary/Vireo — pull request #42 by dheles (2013-07-03 17:11:45+00:00)
Title: fix for errors which do not have an associated jobName

In some cases, an accurate error message may be hidden by a subsequent one thrown by the ErrorLog implementation itself. In the cases I have noted, this stems from the fact that all errors attempt to make use of the jobName of the job at hand, despite the fact that the job itself may be null. SWORD deposit errors are such a case. In order to remedy, I have set a default jobName which will be replaced by the actual one only if the job is not null. In my experience, this sufficiently addresses the problem with a minimum impact to the surrounding code.

(BTW: resubmitted. now 900% cleaner)