Enrich external API failure audit metadata
This commit is contained in:
@@ -3,6 +3,7 @@ import {
|
||||
postApiJson,
|
||||
} from '../../editor/shared/editorApiClient';
|
||||
import {
|
||||
appendApiErrorRequestId,
|
||||
fetchJson,
|
||||
parseApiErrorMessage,
|
||||
} from '../../editor/shared/jsonClient';
|
||||
@@ -265,7 +266,10 @@ export async function putCharacterRoleAssetWorkflow(
|
||||
|
||||
if (!response.ok) {
|
||||
throw new Error(
|
||||
parseApiErrorMessage(responseText, '保存角色资产工坊缓存失败'),
|
||||
appendApiErrorRequestId(
|
||||
parseApiErrorMessage(responseText, '保存角色资产工坊缓存失败'),
|
||||
response.headers.get('x-request-id'),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user