Skip to content

Commit 8246ffe

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ export const selectBranchFromDirectory = async (contentDir: string): Promise<{ b
5555
return { branchPath: selectedBranchPath };
5656
}
5757
} catch (error) {
58-
throw new Error(error);
58+
log.error(`Error selecting branch directory from directory structure: ${error}`);
59+
throw error;
5960
}
6061
};
6162

0 commit comments

Comments
 (0)