We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de61d81 commit 56e3106Copy full SHA for 56e3106
commands/cmderrors/cmderrors.go
@@ -222,7 +222,7 @@ func (e *DuplicateProfileError) Error() string {
222
223
// GRPCStatus converts the error into a *status.Status
224
func (e *DuplicateProfileError) GRPCStatus() *status.Status {
225
- return status.New(codes.NotFound, e.Error())
+ return status.New(codes.AlreadyExists, e.Error())
226
}
227
228
// InvalidProfileError is returned when the profile has errors
0 commit comments