Skip to content

Commit f62e480

Browse files
Merge branch 'development' into fix/back-merge-2
2 parents 8fddf90 + 0601b8e commit f62e480

File tree

8 files changed

+58
-13
lines changed

8 files changed

+58
-13
lines changed

.talismanrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ fileignoreconfig:
66
- filename: packages/contentstack-import/test/integration/environments.test.js
77
checksum: e71f033dad8944ffeafdf22d0514bda1d20c43e8fea0d62c96e774f3414beb31
88
- filename: package-lock.json
9-
checksum: 3659711120fd91234dab455bd0fce6bb94c2c98a0342b45336586e5470e782e8
9+
checksum: cfdcca3041c31aec8f2f39440a263c46d88d404478eb7bf5912c95fe8c1e907d
1010
- filename: packages/contentstack-auth/test/unit/tokens-validation.test.ts
1111
checksum: 676052e30d31a771ce68302d89b050d176bbef50f3abc7e9cdd4384f0e274e10
1212
- filename: packages/contentstack-import/test/integration/auth-token.test.js

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# Changelog
22

33
Please refer to the Contentstack Command-line Interface release notes [here](https://www.contentstack.com/docs/developers/cli/cli-changelog).
4+
5+
## @contentstack/cli-config
6+
### Version: 1.13.1
7+
#### Date: July-21-2025
8+
##### Fix:
9+
- Improve error handling in rate limit command
10+
411
## @contentstack/cli-cm-bulk-publish
512
### Version: 1.8.2
613
#### Date: June-30-2025

package-lock.json

Lines changed: 41 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/contentstack-config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@contentstack/cli-config",
33
"description": "Contentstack CLI plugin for configuration",
4-
"version": "1.13.0",
4+
"version": "1.13.1",
55
"author": "Contentstack",
66
"scripts": {
77
"build": "npm run clean && npm run compile",

packages/contentstack-config/src/commands/config/set/rate-limit.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,11 @@ export default class SetRateLimitCommand extends BaseCommand<typeof SetRateLimit
8282
try {
8383
await limitHandler.setRateLimit(config);
8484
} catch (error) {
85-
cliux.error(`Error: Something went wrong while setting rate limit for org: ${org}`);
86-
cliux.error(error);
85+
if (error?.message) {
86+
cliux.error(error.message);
87+
} else {
88+
cliux.error(`Error: Something went wrong while setting rate limit for org: ${org}`);
89+
}
8790
}
8891
}
8992
}

packages/contentstack-config/src/utils/rate-limit-handler.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { cliux, configHandler, formatError } from '@contentstack/cli-utilities';
1+
import { cliux, configHandler } from '@contentstack/cli-utilities';
22
import { limitNamesConfig, defaultRalteLimitConfig } from '../utils/common-utilities';
33
import { Limit } from '../interfaces';
44

@@ -66,7 +66,6 @@ export class RateLimitHandler {
6666
}
6767
});
6868
} catch (error) {
69-
console.log('Something went wrong while setting rate limit for org:', formatError(error));
7069
throw new Error(error);
7170
}
7271
}

packages/contentstack/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"@contentstack/cli-cm-migrate-rte": "~1.5.2",
3636
"@contentstack/cli-cm-seed": "~1.11.3",
3737
"@contentstack/cli-command": "~1.5.1",
38-
"@contentstack/cli-config": "~1.13.0",
38+
"@contentstack/cli-config": "~1.13.1",
3939
"@contentstack/cli-launch": "^1.9.2",
4040
"@contentstack/cli-migration": "~1.7.3",
4141
"@contentstack/cli-utilities": "~1.12.1",

pnpm-lock.yaml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)