print more informative error message