From 79d22a2556dc6263440c4a2652768fedda6cc064 Mon Sep 17 00:00:00 2001 From: knidarkness Date: Wed, 9 Oct 2019 23:29:49 +0300 Subject: [PATCH] fix: clarify message for EGITNOPERMISSION error --- lib/definitions/errors.js | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/lib/definitions/errors.js b/lib/definitions/errors.js index 69c2fb2259..31268e1dd4 100644 --- a/lib/definitions/errors.js +++ b/lib/definitions/errors.js @@ -27,16 +27,17 @@ Please make sure to add the \`repositoryUrl\` to the [semantic-release configura )}).`, }), EGITNOPERMISSION: ({options}) => ({ - message: 'The push permission to the Git repository is required.', + message: 'Cannot push to the Git repository.', details: `**semantic-release** cannot push the version tag to the branch \`${ options.branch - }\` on remote Git repository with URL \`${options.repositoryUrl}\`. - -Please refer to the [authentication configuration documentation](${linkify( - 'docs/usage/ci-configuration.md#authentication' - )}) to configure the Git credentials on your CI environment and make sure the [repositoryUrl](${linkify( - 'docs/usage/configuration.md#repositoryurl' - )}) is configured with a [valid Git URL](https://git-scm.com/book/en/v2/Git-on-the-Server-The-Protocols).`, + }\` on the remote Git repository with URL \`${options.repositoryUrl}\`. + +This can be caused by: + - a misconfiguration of the [repositoryUrl](${linkify('docs/usage/configuration.md#repositoryurl')}) option + - the repository being unavailable + - or missing push permission for the user configured via the [Git credentials on your CI environment](${linkify( + 'docs/usage/ci-configuration.md#authentication' + )})`, }), EINVALIDTAGFORMAT: ({tagFormat}) => ({ message: 'Invalid `tagFormat` option.',