Skip to content

Commit 7b875dd

Browse files
author
naman-contentstack
committed
update error message
1 parent 1896873 commit 7b875dd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ 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+
throw new Error(error);
6059
}
6160
};
6261

0 commit comments

Comments
 (0)