It will return corresponding message in `errorMessage` as expected.