diff --git a/models/controllers/error.go b/models/controllers/error.go index dc56fab2..ece218aa 100644 --- a/models/controllers/error.go +++ b/models/controllers/error.go @@ -15,7 +15,7 @@ func ErrGetControllerStatus(err error) error { } func ErrDeployController(err error) error { - return errors.New(ErrDeployControllerCode, errors.Alert, []string{"Error deploying meshery controller"}, []string{err.Error()}, []string{"Controller configuration may not be valid"}, []string{"Make sure the controller configuration is valid"}) + return errors.New(ErrDeployControllerCode, errors.Alert, []string{"Error deploying Meshery Operator"}, []string{err.Error()}, []string{"Meshery Server could not connect to the Kubernetes cluster. Meshery Operator was not deployed", "Insufficient file permission to read kubeconfig"}, []string{"Verify that the available kubeconfig is accessible by Meshery Server - verify sufficient file permissions (only needs read permission)"}) } func ErrGetControllerPublicEndpoint(err error) error { diff --git a/utils/error.go b/utils/error.go index cc1252d7..d5160f00 100644 --- a/utils/error.go +++ b/utils/error.go @@ -95,7 +95,7 @@ func ErrReadingRemoteFile(err error) error { } func ErrReadingLocalFile(err error) error { - return errors.New(ErrReadingLocalFileCode, errors.Alert, []string{"error reading local file"}, []string{err.Error()}, []string{"File doesnt exist in the location", "File name is incorrect"}, []string{"Make sure to input the right file name and location"}) + return errors.New(ErrReadingLocalFileCode, errors.Alert, []string{"error reading local file"}, []string{err.Error()}, []string{"File does not exist in the location (~/.kube/config)", "File is absent. Filename is not 'config'.", "Insufficient permissions to read file"}, []string{"Verify that the available kubeconfig is accessible by Meshery Server - verify sufficient file permissions (only needs read permission)."}) } func ErrGettingLatestReleaseTag(err error) error {