Skip to content

Commit

Permalink
Merge pull request #1314 from contentstack/fix/migration-error-helper
Browse files Browse the repository at this point in the history
fix: handle module not found error in migration error helper
  • Loading branch information
aman19K authored Feb 27, 2024
2 parents e2f041e + 3a510f2 commit cbab27b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/contentstack-migration/src/utils/error-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ module.exports = (errors) => {

messages.push(`${fileErrorsMessage}${errorMessages}`);
}
if (isEmpty(messages) && errors?.length) {
if (isEmpty(messages) && errors !== undefined && isEmpty(errorsByFile)) {
console.error('Migration error---', errors);
} else {
console.log(messages.join('\n'));
Expand Down

0 comments on commit cbab27b

Please sign in to comment.