diff --git a/.github/workflows/error-codes-updater.yaml b/.github/workflows/error-codes-updater.yaml index 2042ddf5..82158c63 100644 --- a/.github/workflows/error-codes-updater.yaml +++ b/.github/workflows/error-codes-updater.yaml @@ -26,7 +26,7 @@ jobs: - name: Run utility run: | - go run github.com/meshery/meshkit/cmd/errorutil -d . update --skip-dirs meshery -i ./helpers -o ./helpers + go run github.com/layer5io/meshkit/cmd/errorutil -d . update --skip-dirs meshery -i ./helpers -o ./helpers - name: Pull changes from remote run: git pull origin master diff --git a/encoding/error.go b/encoding/error.go index 7d100853..5f419a29 100644 --- a/encoding/error.go +++ b/encoding/error.go @@ -8,13 +8,13 @@ import ( ) const ( - ErrDecodeYamlCode = "" - ErrUnmarshalCode = "" - ErrUnmarshalInvalidCode = "" - ErrUnmarshalSyntaxCode = "" - ErrUnmarshalTypeCode = "" - ErrUnmarshalUnsupportedTypeCode = "" - ErrUnmarshalUnsupportedValueCode = "" + ErrDecodeYamlCode = "meshkit-11245" + ErrUnmarshalCode = "meshkit-11246" + ErrUnmarshalInvalidCode = "meshkit-11247" + ErrUnmarshalSyntaxCode = "meshkit-11248" + ErrUnmarshalTypeCode = "meshkit-11249" + ErrUnmarshalUnsupportedTypeCode = "meshkit-11250" + ErrUnmarshalUnsupportedValueCode = "meshkit-11251" ) // ErrDecodeYaml is the error when the yaml unmarshal fails diff --git a/generators/artifacthub/error.go b/generators/artifacthub/error.go index fb4c1a91..88b27d7f 100644 --- a/generators/artifacthub/error.go +++ b/generators/artifacthub/error.go @@ -11,8 +11,8 @@ var ( ErrGetAhPackageCode = "meshkit-11135" ErrComponentGenerateCode = "meshkit-11136" ErrGetAllHelmPackagesCode = "meshkit-11137" - ErrChartUrlEmptyCode = "replace_me" - ErrNoPackageFoundCode = "replace_me" + ErrChartUrlEmptyCode = "meshkit-11252" + ErrNoPackageFoundCode = "meshkit-11253" ) func ErrGetAllHelmPackages(err error) error { diff --git a/helpers/component_info.json b/helpers/component_info.json index 92af709d..2de07edb 100644 --- a/helpers/component_info.json +++ b/helpers/component_info.json @@ -1,5 +1,5 @@ { "name": "meshkit", "type": "library", - "next_error_code": 11245 + "next_error_code": 11279 } \ No newline at end of file diff --git a/models/meshmodel/core/v1beta1/error.go b/models/meshmodel/core/v1beta1/error.go index 32e645b6..50e253c0 100644 --- a/models/meshmodel/core/v1beta1/error.go +++ b/models/meshmodel/core/v1beta1/error.go @@ -3,7 +3,7 @@ package v1beta1 import "github.com/layer5io/meshkit/errors" const ( - ErrUnknownKindCode = "" + ErrUnknownKindCode = "meshkit-11254" ) func ErrUnknownKind(err error) error { diff --git a/models/meshmodel/registry/error.go b/models/meshmodel/registry/error.go index 2e0351b4..bf343b7f 100644 --- a/models/meshmodel/registry/error.go +++ b/models/meshmodel/registry/error.go @@ -7,14 +7,14 @@ import ( ) var ( - ErrUnknownHostCode = "replace_me" - ErrEmptySchemaCode = "replace_me" - ErrMarshalingRegisteryAttemptsCode = "replace_me" - ErrWritingRegisteryAttemptsCode = "replace_me" - ErrRegisteringEntityCode = "replace_me" - ErrUnknownHostInMapCode = "replace_me" - ErrCreatingUserDataDirectoryCode = "replace_me" - ErrGetByIdCode = "replace_me" + ErrUnknownHostCode = "meshkit-11255" + ErrEmptySchemaCode = "meshkit-11256" + ErrMarshalingRegisteryAttemptsCode = "meshkit-11257" + ErrWritingRegisteryAttemptsCode = "meshkit-11258" + ErrRegisteringEntityCode = "meshkit-11259" + ErrUnknownHostInMapCode = "meshkit-11260" + ErrCreatingUserDataDirectoryCode = "meshkit-11261" + ErrGetByIdCode = "meshkit-11262" ) func ErrGetById(err error, id string) error { diff --git a/models/oci/error.go b/models/oci/error.go index 641e49f0..a5b7230e 100644 --- a/models/oci/error.go +++ b/models/oci/error.go @@ -22,9 +22,9 @@ var ( ErrAddLayerCode = "meshkit-11247" ErrTaggingPackageCode = "meshkit-11248" ErrPushingPackageCode = "meshkit-11249" - ErrSeekFailedCode = "replace_me" - ErrCreateLayerCode = "replace_me" - ErrSavingImageCode = "replace_me" + ErrSeekFailedCode = "meshkit-11263" + ErrCreateLayerCode = "meshkit-11264" + ErrSavingImageCode = "meshkit-11265" ) func ErrAppendingLayer(err error) error { diff --git a/models/patterns/error.go b/models/patterns/error.go index ad37aad6..a3044495 100644 --- a/models/patterns/error.go +++ b/models/patterns/error.go @@ -3,7 +3,7 @@ package patterns import "github.com/layer5io/meshkit/errors" const ( - ErrInvalidVersionCode = "" + ErrInvalidVersionCode = "meshkit-11266" ) func ErrInvalidVersion(err error) error { diff --git a/models/registration/error.go b/models/registration/error.go index 32e627c3..eafe4e66 100644 --- a/models/registration/error.go +++ b/models/registration/error.go @@ -7,12 +7,12 @@ import ( ) const ( - ErrDirPkgUnitParseFailCode = "replace_me" - ErrGetEntityCode = "replace_me" - ErrRegisterEntityCode = "replace_me" - ErrImportFailureCode = "replace_me" - ErrMissingRegistrantCode = "replace_me" - ErrSeedingComponentsCode = "replace-me" + ErrDirPkgUnitParseFailCode = "meshkit-11267" + ErrGetEntityCode = "meshkit-11268" + ErrRegisterEntityCode = "meshkit-11269" + ErrImportFailureCode = "meshkit-11270" + ErrMissingRegistrantCode = "meshkit-11271" + ErrSeedingComponentsCode = "meshkit-11272" ) func ErrSeedingComponents(err error) error { diff --git a/utils/error.go b/utils/error.go index 5716fc8a..16cbd75b 100644 --- a/utils/error.go +++ b/utils/error.go @@ -40,17 +40,16 @@ var ( ErrExtractTarXZCode = "meshkit-11184" ErrExtractZipCode = "meshkit-11185" ErrReadDirCode = "meshkit-11186" - ErrInvalidSchemaVersionCode = "replace_me" - ErrFileWalkDirCode = "replace_me" - ErrRelPathCode = "replace_me" - ErrCopyFileCode = "replace_me" - ErrCloseFileCode = "replace_me" + ErrInvalidSchemaVersionCode = "meshkit-11273" + ErrFileWalkDirCode = "meshkit-11274" + ErrRelPathCode = "meshkit-11275" + ErrCopyFileCode = "meshkit-11276" + ErrCloseFileCode = "meshkit-11277" ErrCompressToTarGZCode = "meshkit-11248" - ErrConvertToByteCode = "meshkit-11187" - - ErrOpenFileCode = "replace_me" + ErrConvertToByteCode = "meshkit-11187" + ErrOpenFileCode = "meshkit-11278" ) var ( ErrExtractType = errors.New(