refactor: simply EGITNOPERMISSION error parameters

This commit is contained in:
Pierre Vanduynslager
2018-06-15 16:16:55 -04:00
parent 0ab0426075
commit 24a8052038
2 changed files with 3 additions and 4 deletions
+1 -2
View File
@@ -54,7 +54,6 @@ async function run(options, plugins) {
await verify(options);
const {repositoryUrl} = options;
options.repositoryUrl = await getGitAuthUrl(options);
if (!(await isBranchUpToDate(options.branch))) {
@@ -69,7 +68,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, repositoryUrl});
throw getError('EGITNOPERMISSION', {options});
}
logger.log('Run automated release from branch %s', options.branch);