issue #19379: better error logging