Make error message more specific.
@@ -4,8 +4,8 @@ import org.gradle.api.GradleException;
import org.shipkit.gradle.git.GitPushTask;
public class CannotPushToGithubException extends RuntimeException {
- public static final String GH_WRITE_TOKEN_NOT_SET_MSG = "Cannot push to remote repository. GH_WRITE_TOKEN not set or you don't have write access to remote. Please recheck your configuration.";
- public static final String GH_WRITE_TOKEN_INVALID_MSG = "Cannot push to remote repository. GH_WRITE_TOKEN is set but possibly invalid. Please recheck your configuration.";
+ public static final String GH_WRITE_TOKEN_NOT_SET_MSG = "Cannot push to remote repository. GH_WRITE_TOKEN env variable not set or you don't have write access to remote. Please recheck your configuration.";
+ public static final String GH_WRITE_TOKEN_INVALID_MSG = "Cannot push to remote repository. GH_WRITE_TOKEN env variable is set but possibly invalid. Please recheck your configuration.";
private CannotPushToGithubException(String message, Throwable cause) {
super(message, cause);
