Skip to content

Commit

Permalink
fix: Better error message when clone is failed
Browse files Browse the repository at this point in the history
  • Loading branch information
finom authored Sep 25, 2016
1 parent e5bbe48 commit eca5df1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ console.log(`Cloning the repository to "${config.folder}" folder...`);
try {
execSync(`git clone -b ${config.branch} ${config.repository} ${config.folder} 2>&1`, { cwd });
} catch (e) {
throw Error('Failed to clone.');
throw Error('Failed to clone. Check the repository name, permissions to clone and the absence of "${config.folder}" folder.');
}


Expand Down

0 comments on commit eca5df1

Please sign in to comment.