more informative error logging