more accurate error message