@tinycloud/cli 1.2.3-beta.3 → 1.2.3-beta.4
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/legacy-entry.js +8 -0
- package/dist/legacy-entry.js.map +1 -1
- package/package.json +1 -1
package/dist/legacy-entry.js
CHANGED
|
@@ -24503,6 +24503,14 @@ function registerKvCommand(program) {
|
|
|
24503
24503
|
...cursor === void 0 ? {} : { cursor }
|
|
24504
24504
|
}));
|
|
24505
24505
|
if (!result.ok) {
|
|
24506
|
+
if (cursor !== void 0 && result.error.meta?.status === 400) {
|
|
24507
|
+
throw new CLIError(
|
|
24508
|
+
"KV_LIST_CURSOR_INVALID",
|
|
24509
|
+
`The node rejected the list cursor (${result.error.message}).`,
|
|
24510
|
+
ExitCode.USAGE_ERROR,
|
|
24511
|
+
{ hint: "Start the listing again without --cursor, or pass a nextCursor from a recent kv list." }
|
|
24512
|
+
);
|
|
24513
|
+
}
|
|
24506
24514
|
await throwKvError(result.error, spaceUri, ctx.profile);
|
|
24507
24515
|
break;
|
|
24508
24516
|
}
|