Add return statement in one of the error handling paths