Skip to content

Commit e7a1f32

Browse files
committed
chore: update license year and refine error message for HTTP client requirement
1 parent 83a8119 commit e7a1f32

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2012-2025 Contentstack
3+
Copyright (c) 2012-2026 Contentstack
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

lib/core/errorMessages.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const ERROR_MESSAGES = {
2121
NO_APP_AUTHORIZATIONS: 'No authorizations found for the app. Verify app configuration and try again.',
2222

2323
// Concurrency queue errors
24-
AXIOS_INSTANCE_MISSING: 'Axios instance is not present. Initialize the HTTP client and try again.',
24+
AXIOS_INSTANCE_MISSING: 'HTTP client is required. Initialize the HTTP client and try again.',
2525
MIN_CONCURRENT_REQUESTS: 'Concurrency Manager Error: Minimum concurrent requests must be at least 1.',
2626
MIN_RETRY_LIMIT: 'Retry Policy Error: Minimum retry limit must be at least 1.',
2727
MIN_RETRY_DELAY: 'Retry Policy Error: Minimum retry delay must be at least 300ms.',

test/unit/concurrency-Queue-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ describe('Concurrency queue test', () => {
189189
new ConcurrencyQueue({ axios: undefined })
190190
expect.fail('Undefined axios should fail')
191191
} catch (error) {
192-
expect(error.message).to.be.equal('Axios instance is not present. Initialize the HTTP client and try again.')
192+
expect(error.message).to.be.equal('HTTP client is required. Initialize the HTTP client and try again.')
193193
done()
194194
}
195195
})

0 commit comments

Comments
 (0)