继续收敛发布面板错误正文
保留截图上传、进度订阅和发布提交错误详情 补充发布错误处理文档
This commit is contained in:
+7
-8
@@ -629,10 +629,10 @@ export function GameDistributionPublishPanel({
|
||||
...item,
|
||||
status: 'failed',
|
||||
assetObjectId: null,
|
||||
error:
|
||||
uploadError instanceof Error
|
||||
? uploadError.message
|
||||
: '截图上传失败,请删除后重试',
|
||||
error: visibleClientErrorMessage(
|
||||
uploadError,
|
||||
'截图上传失败,请删除后重试',
|
||||
),
|
||||
}
|
||||
: item,
|
||||
),
|
||||
@@ -703,8 +703,9 @@ export function GameDistributionPublishPanel({
|
||||
: null,
|
||||
});
|
||||
});
|
||||
} catch {
|
||||
} catch (progressError) {
|
||||
// 订阅失败只影响阶段条:发布本身照常进行,按钮上仍显示「正在发布…」。
|
||||
setError(`发布进度订阅失败:${visibleClientErrorMessage(progressError)}`);
|
||||
}
|
||||
try {
|
||||
const next = await publishLocalProjectGame({
|
||||
@@ -742,9 +743,7 @@ export function GameDistributionPublishPanel({
|
||||
setResult(next);
|
||||
onPublished?.(next);
|
||||
} catch (nextError) {
|
||||
setError(
|
||||
nextError instanceof Error ? nextError.message : String(nextError),
|
||||
);
|
||||
setError(visibleClientErrorMessage(nextError, '发布失败,请重试'));
|
||||
} finally {
|
||||
unsubscribe();
|
||||
setBusy(false);
|
||||
|
||||
Reference in New Issue
Block a user