Skip to content

Commit 56e3106

Browse files
Update commands/cmderrors/cmderrors.go
Co-authored-by: Alessio Perugini <[email protected]>
1 parent de61d81 commit 56e3106

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commands/cmderrors/cmderrors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ func (e *DuplicateProfileError) Error() string {
222222

223223
// GRPCStatus converts the error into a *status.Status
224224
func (e *DuplicateProfileError) GRPCStatus() *status.Status {
225-
return status.New(codes.NotFound, e.Error())
225+
return status.New(codes.AlreadyExists, e.Error())
226226
}
227227

228228
// InvalidProfileError is returned when the profile has errors

0 commit comments

Comments
 (0)