This commit is contained in:
ryan
2026-07-13 15:08:40 +08:00
parent 08e8eea932
commit 1eff7878a1
441 changed files with 26491 additions and 18405 deletions
+4 -1
View File
@@ -47,7 +47,10 @@ export async function readApiEnvelope<T>(
const envelope = body as ApiEnvelope<T>;
if (!res.ok) {
throw new ApiEnvelopeError(envelope.error_msg || fallbackMessage, res.status);
throw new ApiEnvelopeError(
envelope.error_msg || fallbackMessage,
res.status,
);
}
if (envelope.error_msg) {
throw new ApiEnvelopeError(envelope.error_msg, res.status);