Fix an issue in sql repo errors

master
Caj Larsson 3 years ago
parent 857a558544
commit 6736229185

@ -139,7 +139,7 @@ func (r *Repository) GetByName(name string) (*namespace.Namespace, error) {
row, err := q.GetNamespaceByName(ctx, name) row, err := q.GetNamespaceByName(ctx, name)
if err != nil { if err != nil {
return nil, err return nil, namespace.ErrNotExists
} }
ns := namespace.Namespace{ ns := namespace.Namespace{

Loading…
Cancel
Save