@rayul/kordis 0.1.8 → 0.1.9
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/index.js +4 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2768,6 +2768,7 @@ function handleError(err) {
|
|
|
2768
2768
|
code: err.code,
|
|
2769
2769
|
message: err.message,
|
|
2770
2770
|
flags: err.flags,
|
|
2771
|
+
...err.retryAfter !== void 0 ? { retry_after_seconds: err.retryAfter } : {},
|
|
2771
2772
|
request_id: err.requestId
|
|
2772
2773
|
}
|
|
2773
2774
|
});
|
|
@@ -2776,6 +2777,9 @@ function handleError(err) {
|
|
|
2776
2777
|
for (const f of err.flags) {
|
|
2777
2778
|
printHuman(c.red(` - ${f.code}${f.message ? `: ${f.message}` : ""}`));
|
|
2778
2779
|
}
|
|
2780
|
+
if (err.retryAfter !== void 0) {
|
|
2781
|
+
printHuman(c.yellow(` retry after: ${err.retryAfter}s`));
|
|
2782
|
+
}
|
|
2779
2783
|
if (err.requestId) {
|
|
2780
2784
|
printHuman(c.gray(` (request-id: ${err.requestId})`));
|
|
2781
2785
|
}
|