Skip to content
Snippets Groups Projects
Commit e35c2481 authored by Manuel Kieweg's avatar Manuel Kieweg
Browse files

fixed return value

parent 43cc6b00
No related branches found
No related tags found
8 merge requests!246Develop,!245Develop into Master,!244Master into develop2 into master,!219Draft: Testing,!214Test pipelines,!195DO NOT MERGE 2,!194DO NOT MERGE! just for testing,!138Develop
Pipeline #68936 passed
This commit is part of merge request !138. Comments created here will be created in the context of that merge request.
......@@ -45,7 +45,7 @@ func NewPND(name, description string, id uuid.UUID, sbi SouthboundInterface) (Pr
id: id,
}
if err := pnd.sbic.add(sbi); err != nil {
return nil, &ErrAlreadyExists{item: sbi}
return nil, err
}
return pnd, nil
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment