update show error logic