ISIS-547: better error logging