add show text in fail function