produce more informative error message