Skip to content

Commit

Permalink
[Error Codes]: Update Meshery server and mehseryctl error codes and r…
Browse files Browse the repository at this point in the history
…eference

Signed-off-by: l5io <[email protected]>
  • Loading branch information
humblenginr authored and l5io committed Aug 6, 2024
1 parent 03e98c2 commit 35675a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mesheryctl/helpers/component_info.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "mesheryctl",
"type": "client",
"next_error_code": 1127
"next_error_code": 1128
}
4 changes: 2 additions & 2 deletions mesheryctl/internal/cli/root/model/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
)

const (
ErrExportModelCode = "replace_me"
ErrExportModelCode = "mesheryctl-1127"
)

func ErrExportModel(err error, name string) error {
return errors.New(ErrExportModelCode, errors.Fatal, []string{"Error exporting model"}, []string{fmt.Sprintf("Given model with name: %s could not be exported: %s", name, err)}, []string{"Model may not be present in the registry"}, []string{"Ensure that there are no typos in the model name"})
}
}

0 comments on commit 35675a7

Please sign in to comment.