From 7934119676d27a9cb76a3587419303cc24c612e7 Mon Sep 17 00:00:00 2001 From: Francesco Ilario Date: Wed, 28 Aug 2024 19:54:15 +0200 Subject: [PATCH] Update pkg/proxy/proxy.go Co-authored-by: Alexey Kazakov --- pkg/proxy/proxy.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/proxy/proxy.go b/pkg/proxy/proxy.go index ee916913..ae729150 100644 --- a/pkg/proxy/proxy.go +++ b/pkg/proxy/proxy.go @@ -362,8 +362,8 @@ func (p *Proxy) checkUserIsProvisionedAndSpaceExists(ctx echo.Context, userID, u func (p *Proxy) checkSpaceExists(workspaceName string) error { if _, err := p.app.InformerService().GetSpace(workspaceName); err != nil { // log the actual error but do not return it so that it doesn't reveal information about a space that may not belong to the requestor - log.Errorf(nil, err, "requested space '%s' is not available", workspaceName) - return fmt.Errorf("the requested space is not available") + log.Errorf(nil, err, "requested space '%s' does not exist", workspaceName) + return fmt.Errorf("access to workspace '%s' is forbidden", workspaceName) } return nil }