From 43519b7999aa3e9b363ede9955286a2bae3bac4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Goli=C5=84ski?= Date: Thu, 13 Feb 2025 20:27:49 +0100 Subject: [PATCH] chore(errors): Improve error messaging for administrative stacks --- spacelift/internal/error.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacelift/internal/error.go b/spacelift/internal/error.go index 1ec8c66a..8ed672c3 100644 --- a/spacelift/internal/error.go +++ b/spacelift/internal/error.go @@ -12,7 +12,7 @@ import ( // In this case an unauthorized error. func FromSpaceliftError(err error) error { if err != nil && strings.Contains(err.Error(), "unauthorized") { - return fmt.Errorf("%w - is it an administrative stack in the appropriate space?", err) + return fmt.Errorf("%w - Is it an administrative stack in the appropriate space? Additionally, have you ensured that you provided the correct space ID rather than the space name?", err) } var graphErrs graphql.GraphQLErrors