buildLocalFailure