set a better error message