Skip to content

Commit b64ef97

Browse files
committed
Added Long description
Signed-off-by: dhruv0000 <[email protected]>
1 parent 031cbab commit b64ef97

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

controllers/error.go

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,49 +20,49 @@ const (
2020
)
2121

2222
func ErrGetMeshsync(err error) error {
23-
return errors.New(ErrGetMeshsyncCode, errors.Alert, []string{"Meshsync resource not found", err.Error()}, []string{}, []string{}, []string{})
23+
return errors.New(ErrGetMeshsyncCode, errors.Alert, []string{"Meshsync resource not found"}, []string{err.Error()}, []string{}, []string{})
2424
}
2525

2626
func ErrCreateMeshsync(err error) error {
27-
return errors.New(ErrCreateMeshsyncCode, errors.Alert, []string{"Unable to create meshsync controller", err.Error()}, []string{}, []string{}, []string{})
27+
return errors.New(ErrCreateMeshsyncCode, errors.Alert, []string{"Unable to create meshsync controller"}, []string{err.Error()}, []string{}, []string{})
2828
}
2929

3030
func ErrDeleteMeshsync(err error) error {
31-
return errors.New(ErrDeleteMeshsyncCode, errors.Alert, []string{"Unable to delete meshsync controller", err.Error()}, []string{}, []string{}, []string{})
31+
return errors.New(ErrDeleteMeshsyncCode, errors.Alert, []string{"Unable to delete meshsync controller"}, []string{err.Error()}, []string{}, []string{})
3232
}
3333

3434
func ErrReconcileMeshsync(err error) error {
35-
return errors.New(ErrReconcileMeshsyncCode, errors.Alert, []string{"Error during meshsync resource reconcillation", err.Error()}, []string{}, []string{}, []string{})
35+
return errors.New(ErrReconcileMeshsyncCode, errors.Alert, []string{"Error during meshsync resource reconcillation"}, []string{err.Error()}, []string{}, []string{})
3636
}
3737

3838
func ErrGetBroker(err error) error {
39-
return errors.New(ErrGetBrokerCode, errors.Alert, []string{"Broker resource not found", err.Error()}, []string{}, []string{}, []string{})
39+
return errors.New(ErrGetBrokerCode, errors.Alert, []string{"Broker resource not found"}, []string{err.Error()}, []string{}, []string{})
4040
}
4141

4242
func ErrCreateBroker(err error) error {
43-
return errors.New(ErrCreateBrokerCode, errors.Alert, []string{"Unable to create broker controller", err.Error()}, []string{}, []string{}, []string{})
43+
return errors.New(ErrCreateBrokerCode, errors.Alert, []string{"Unable to create broker controller"}, []string{err.Error()}, []string{}, []string{})
4444
}
4545

4646
func ErrDeleteBroker(err error) error {
47-
return errors.New(ErrDeleteBrokerCode, errors.Alert, []string{"Unable to delete broker controller", err.Error()}, []string{}, []string{}, []string{})
47+
return errors.New(ErrDeleteBrokerCode, errors.Alert, []string{"Unable to delete broker controller"}, []string{err.Error()}, []string{}, []string{})
4848
}
4949

5050
func ErrReconcileBroker(err error) error {
51-
return errors.New(ErrReconcileBrokerCode, errors.Alert, []string{"Error during broker resource reconcillation", err.Error()}, []string{}, []string{}, []string{})
51+
return errors.New(ErrReconcileBrokerCode, errors.Alert, []string{"Error during broker resource reconcillation"}, []string{err.Error()}, []string{}, []string{})
5252
}
5353

5454
func ErrReconcileCR(err error) error {
55-
return errors.New(ErrReconcileCRCode, errors.Alert, []string{"Error during custom resource resource reconcillation", err.Error()}, []string{}, []string{}, []string{})
55+
return errors.New(ErrReconcileCRCode, errors.Alert, []string{"Error during custom resource resource reconcillation"}, []string{err.Error()}, []string{}, []string{})
5656
}
5757

5858
func ErrCheckHealth(err error) error {
59-
return errors.New(ErrCheckHealthCode, errors.Alert, []string{"Error during health check", err.Error()}, []string{}, []string{}, []string{})
59+
return errors.New(ErrCheckHealthCode, errors.Alert, []string{"Error during health check"}, []string{err.Error()}, []string{}, []string{})
6060
}
6161

6262
func ErrGetEndpoint(err error) error {
63-
return errors.New(ErrGetEndpointCode, errors.Alert, []string{"Error gettting endpoint", err.Error()}, []string{}, []string{}, []string{})
63+
return errors.New(ErrGetEndpointCode, errors.Alert, []string{"Error gettting endpoint"}, []string{err.Error()}, []string{}, []string{})
6464
}
6565

6666
func ErrUpdateResource(err error) error {
67-
return errors.New(ErrUpdateResourceCode, errors.Alert, []string{"Error updating Resource", err.Error()}, []string{}, []string{}, []string{})
67+
return errors.New(ErrUpdateResourceCode, errors.Alert, []string{"Error updating Resource"}, []string{err.Error()}, []string{}, []string{})
6868
}

pkg/broker/error.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ const (
1212
)
1313

1414
func ErrGettingResource(err error) error {
15-
return errors.New(ErrGettingResourceCode, errors.Alert, []string{"Unable to get requested resource" + err.Error()}, []string{"Unable to get requested resource while doing health check", err.Error()}, []string{}, []string{})
15+
return errors.New(ErrGettingResourceCode, errors.Alert, []string{"Unable to get requested resource"}, []string{"Unable to get requested resource while doing health check", err.Error()}, []string{}, []string{})
1616
}
1717

1818
func ErrGettingEndpoint(err error) error {
19-
return errors.New(ErrGettingEndpointCode, errors.Alert, []string{"Unable to discovery endpoint" + err.Error()}, []string{}, []string{}, []string{})
19+
return errors.New(ErrGettingEndpointCode, errors.Alert, []string{"Unable to discovery endpoint"}, []string{err.Error()}, []string{}, []string{})
2020
}
2121

2222
func ErrReplicasNotReady(reason string) error {
23-
return errors.New(ErrReplicasNotReadyCode, errors.Alert, []string{"Replicas not ready.", reason}, []string{}, []string{}, []string{})
23+
return errors.New(ErrReplicasNotReadyCode, errors.Alert, []string{"Replicas not ready."}, []string{reason}, []string{}, []string{})
2424
}
2525

2626
func ErrConditionFalse(reason string) error {
27-
return errors.New(ErrConditionFalseCode, errors.Alert, []string{"Health check condition false.", reason}, []string{}, []string{}, []string{})
27+
return errors.New(ErrConditionFalseCode, errors.Alert, []string{"Health check condition false."}, []string{reason}, []string{}, []string{})
2828
}

0 commit comments

Comments
 (0)