TexasDigitalLibrary/Vireo — pull request #41 by dheles (2013-07-03 15:49:34+00:00)
Title: Fix error log

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, my apologies for the additional "catching up" commits. I attempted to clean them up before submitting, but was unable to do so as successfully as I might have liked. The only relevant one to this pull request is that last, "fix for errors which do not have an associated jobName."