Skip to content

Commit 34523c5

Browse files
Add error formatting to rate limit handler logging
1 parent 7b0ad2c commit 34523c5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

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

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

0 commit comments

Comments
 (0)