Correct error message in shell