Improved an error message to include the relation