Skip to content

Commit

Permalink
add existing source name to error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
djnakabaale committed Aug 11, 2023
1 parent 53a54ca commit e03142a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ func SourceGetOrCreate(handler *SourceHandler, client crhchttp.HTTPClient) (bool
return false, currentTime, err
}
if source != nil {
errMsg := fmt.Sprintf("This cluster may already be registered because an OpenShift source with Cluster ID %s is already registered with a different name.", handler.Auth.ClusterID)
errMsg := fmt.Sprintf("This cluster may already be registered because an OpenShift source with Cluster ID %s is already registered with a different name (%s).", handler.Auth.ClusterID, source.Name)
log.Info(errMsg)
return false, metav1.Now(), fmt.Errorf(errMsg)
}
Expand Down

0 comments on commit e03142a

Please sign in to comment.