fix error message

tests pass