Преглед изворни кода

fix: enhance error message for invalid plugin unique identifier

Yeuoly пре 6 месеци
родитељ
комит
90cc50a153
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      pkg/entities/plugin_entities/identity.go

+ 1 - 1
pkg/entities/plugin_entities/identity.go

@@ -26,7 +26,7 @@ var (
 
 func NewPluginUniqueIdentifier(identifier string) (PluginUniqueIdentifier, error) {
 	if !pluginUniqueIdentifierRegexp.MatchString(identifier) {
-		return "", errors.New("plugin_unique_identifier is not valid")
+		return "", errors.New("plugin_unique_identifier is not valid: " + identifier)
 	}
 	return PluginUniqueIdentifier(identifier), nil
 }