fix use of non-returning function fail