From 6736229185bbae1254cb1ac751bc9f03c0376740 Mon Sep 17 00:00:00 2001 From: Caj Larsson Date: Fri, 6 May 2022 21:37:00 +0800 Subject: [PATCH] Fix an issue in sql repo errors --- infrastructure/sqlite/namespace/repository.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infrastructure/sqlite/namespace/repository.go b/infrastructure/sqlite/namespace/repository.go index 84af638..5926b97 100644 --- a/infrastructure/sqlite/namespace/repository.go +++ b/infrastructure/sqlite/namespace/repository.go @@ -139,7 +139,7 @@ func (r *Repository) GetByName(name string) (*namespace.Namespace, error) { row, err := q.GetNamespaceByName(ctx, name) if err != nil { - return nil, err + return nil, namespace.ErrNotExists } ns := namespace.Namespace{