fix: update error types for upstream errors and JSON marshal failure

This commit is contained in:
CaIon
2025-08-26 16:26:56 +08:00
parent eef73e3699
commit 33d601db82
3 changed files with 5 additions and 5 deletions

View File

@@ -130,7 +130,7 @@ func TextHelper(c *gin.Context, info *relaycommon.RelayInfo) (newAPIError *types
jsonData, err := common.Marshal(convertedRequest)
if err != nil {
return types.NewError(err, types.ErrorCodeConvertRequestFailed, types.ErrOptionWithSkipRetry())
return types.NewError(err, types.ErrorCodeJsonMarshalFailed, types.ErrOptionWithSkipRetry())
}
// apply param override