added to the error message the definition it occured in