fix: add clarification in EGITNOPERMISSION error message

Clarify that the error might be due to an invalid `repositoryUrl` configuration.
This commit is contained in:
Pierre Vanduynslager
2018-05-20 23:14:44 +03:00
parent d7081fadb1
commit a72d8f52af
2 changed files with 7 additions and 4 deletions
+2 -1
View File
@@ -54,6 +54,7 @@ async function run(options, plugins) {
await verify(options);
const {repositoryUrl} = options;
options.repositoryUrl = await getGitAuthUrl(options);
if (!(await isBranchUpToDate(options.branch))) {
@@ -68,7 +69,7 @@ async function run(options, plugins) {
await verifyAuth(options.repositoryUrl, options.branch);
} catch (err) {
logger.error(`The command "${err.cmd}" failed with the error message %s.`, err.stderr);
throw getError('EGITNOPERMISSION', {options});
throw getError('EGITNOPERMISSION', {options, repositoryUrl});
}
logger.log('Run automated release from branch %s', options.branch);