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{