Skip to content

Commit

Permalink
Improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Y-- committed Feb 10, 2025
1 parent 5dabdbb commit 7a19b0a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/helpers/simple-git.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ exports.initSimpleGit = function (context, repo) {
return sg;
} catch (err) {
if (err.message.includes('Cannot use simple-git on a directory that does not exist')) {
err.message = `Cannot start: repository '${repoPath}' does not exist`;
err.stack = '';
delete err.task;
delete err.config;
Expand Down

0 comments on commit 7a19b0a

Please sign in to comment.