We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf1af7c commit 23e5c21Copy full SHA for 23e5c21
2 files changed
.changeset/two-timers-flash.md
@@ -0,0 +1,5 @@
1
+---
2
+'@commercetools/discount-code-importer': patch
3
4
+
5
+Improve Error Logging for Discount Importer
packages/discount-code-importer/src/main.js
@@ -146,13 +146,14 @@ export default class DiscountCodeImport {
146
.then((): Promise<void> => Promise.resolve())
147
.catch(
148
// eslint-disable-next-line
149
- (caughtError): Object =>
150
- new DiscountCodeImportError(
+ (caughtError): Object => {
+ this.logger.error(caughtError.message || caughtError)
151
+ return new DiscountCodeImportError(
152
'Processing batches failed',
153
caughtError.message || caughtError,
154
this._summary
- )
155
+ );
156
+ })
157
}
158
159
_createOrUpdate(
0 commit comments