Sfoglia il codice sorgente

fix: enhance error message for invalid plugin unique identifier

Yeuoly 6 mesi fa
parent
commit
90cc50a153
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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
 }