issue #19379: better error logging
Merge pull request #131 from shackbarth/19379

issue #19379: better error logging