Explorar o código

remove unnecessary error msg

Darien Raymond %!s(int64=8) %!d(string=hai) anos
pai
achega
eff193ab45
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      loader.go

+ 1 - 1
loader.go

@@ -23,7 +23,7 @@ func RegisterConfigLoader(format ConfigFormat, loader ConfigLoader) error {
 func LoadConfig(format ConfigFormat, input io.Reader) (*Config, error) {
 	loader, found := configLoaderCache[format]
 	if !found {
-		return nil, newError("Core: ", ConfigFormat_name[int32(format)], " is not loadable.")
+		return nil, newError(ConfigFormat_name[int32(format)], " is not loadable.")
 	}
 	return loader(input)
 }