Change error message to following change in api