Skip to content

Commit eca5df1

Browse files
authored
fix: Better error message when clone is failed
1 parent e5bbe48 commit eca5df1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ console.log(`Cloning the repository to "${config.folder}" folder...`);
2929
try {
3030
execSync(`git clone -b ${config.branch} ${config.repository} ${config.folder} 2>&1`, { cwd });
3131
} catch (e) {
32-
throw Error('Failed to clone.');
32+
throw Error('Failed to clone. Check the repository name, permissions to clone and the absence of "${config.folder}" folder.');
3333
}
3434

3535

0 commit comments

Comments
 (0)