Skip to content

Make videos on the computer you already own. FreeVideo runs MiniMax H3 in as little as 8 GB of VRAM and 16 GB of RAM, and adapts its acceleration path to your hardware.

Keep an explicit refusal reason unprefixed in the delete failure report

Bowen Xue12f33fb47274
diff --git a/web/editor.js b/web/editor.js
index 8d0f975..3788593 100644
--- a/web/editor.js
+++ b/web/editor.js
@@ -126,9 +126,10 @@ function saveReason(failure) {
if (!failure) return 'unsaved';
return failure.reason || (failure.status ? 'http_' + failure.status : isNetworkTypeError(failure) ? 'network' : undefined);
}
-// Names the failed delete for the report: the server's reason, else the HTTP status, a lost connection or the error's own code or name, prefixed with the step when it was not the delete request itself.
+// Names the failed delete for the report: a reason given by the server or the page as it is, else the HTTP status, a lost connection or the error's own code or name, prefixed with the step when it was not the delete request itself.
function deleteReason(value, step = 'delete') {
- const code = value?.reason || (value?.status ? 'http_' + value.status : isNetworkTypeError(value) ? 'network' : value?.code || value?.name);
+ if (value?.reason) return value.reason;
+ const code = value?.status ? 'http_' + value.status : isNetworkTypeError(value) ? 'network' : value?.code || value?.name;
return code && step !== 'delete' ? step + '_' + code : code;
}
function restoreGeneration(record, before, prepared) {