update response of callback response error

This commit is contained in:
AndrewZuo01 2023-12-15 16:43:28 +08:00
parent 7dc8a0d519
commit 25fa4da3bc

View File

@ -127,7 +127,7 @@ func callBackPostReturn(ctx context.Context, url, command string, input interfac
log.ZWarn(ctx, "callback failed but continue", err, "url", url)
return nil
}
return errs.ErrData.Wrap(err.Error())
return errs.ErrData.WithDetail(err.Error() + "response format error")
}
return output.Parse()