copilot-api-plus 1.2.44 → 1.2.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +5 -1
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -2169,7 +2169,11 @@ async function createWithMultiAccount(payload) {
|
|
|
2169
2169
|
});
|
|
2170
2170
|
if (retryResult) return retryResult;
|
|
2171
2171
|
if (error.__nonAccountError) throw error;
|
|
2172
|
-
} else
|
|
2172
|
+
} else {
|
|
2173
|
+
const errMsg = error.message || String(error);
|
|
2174
|
+
consola.warn(`Account ${account.label}: network error (not rotating): ${errMsg}`);
|
|
2175
|
+
throw error;
|
|
2176
|
+
}
|
|
2173
2177
|
consola.warn(`Account ${account.label} failed (attempt ${attempt + 1}), trying next...`);
|
|
2174
2178
|
}
|
|
2175
2179
|
}
|