improves the error message a bit