Explorar el Código

fix: enhance error message for invalid plugin unique identifier

Yeuoly hace 6 meses
padre
commit
90cc50a153
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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
 }