From 8c4109791ee0eefadf96c9d7c925da45c11a655f Mon Sep 17 00:00:00 2001 From: winter Date: Tue, 14 Jan 2025 17:22:01 +0000 Subject: set up auth automatically on push failure --- Digitigrade/Model/Instance.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Digitigrade/Model/Instance.php') diff --git a/Digitigrade/Model/Instance.php b/Digitigrade/Model/Instance.php index 2b07b9a..c689657 100644 --- a/Digitigrade/Model/Instance.php +++ b/Digitigrade/Model/Instance.php @@ -1,6 +1,7 @@ auth->outboundToken)) { - throw new \RuntimeException("can't push to $this->domain because i don't have an outbound token for it"); + throw new AuthException($this); } if (!$this->auth->outboundPushEnabled) { throw new \RuntimeException("won't push to $this->domain because it hasn't subscribed to us"); -- cgit v1.3