Skip to content

Commit 4336615

Browse files
Merge pull request #2119 from contentstack/update_DX-3246
update error message
2 parents 1896873 + 8246ffe commit 4336615

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/contentstack-import/src/utils/import-path-resolver.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ export const selectBranchFromDirectory = async (contentDir: string): Promise<{ b
5555
return { branchPath: selectedBranchPath };
5656
}
5757
} catch (error) {
58-
log.error(`Error reading branches.json: ${error}`);
59-
throw new Error('Failed to read branches.json file. Please ensure the file exists and is valid JSON.');
58+
log.error(`Error selecting branch directory from directory structure: ${error}`);
59+
throw error;
6060
}
6161
};
6262

0 commit comments

Comments
 (0)