Skip to content

Commit

Permalink
fix(import): fixed stack inaccessible issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Vikram Kalta authored and Vikram Kalta committed Sep 28, 2023
1 parent 5647513 commit dbc3db3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/contentstack-import/src/import/module-importer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ class ModuleImporter {
},
});

if (data.error_code === 161) {
throw new Error(data.error_message);
if ([161, 105].includes(data.error_code)) {
throw new Error(data.error_code === 105 ? 'Sorry but you don\'t have access to this stack' : data.error_message);
}

if (!this.importConfig.master_locale) {
Expand Down

0 comments on commit dbc3db3

Please sign in to comment.