Error strings noncapitalized (#1704)

* Fix error string capitalization

Error strings often follow another string. Hence, they should not be
capitalized, unless referencing a name.

* Uncapitalize more error strings

While here, use %v on the error directly, which makes it easier to wrap
the error later with %w if need be.

* Uncapitalize more error strings

While here, rename Url to URL as a nitpick.
This commit is contained in:
SmallCoccinelle
2021-09-08 03:23:10 +02:00
committed by GitHub
parent d2a0a8fe4c
commit e7f6cb22b7
10 changed files with 26 additions and 19 deletions

View File

@@ -56,18 +56,18 @@ func (t *rawPluginTask) Start() error {
stderr, err := cmd.StderrPipe()
if err != nil {
logger.Error("Plugin stderr not available: " + err.Error())
logger.Error("plugin stderr not available: " + err.Error())
}
stdout, err := cmd.StdoutPipe()
if nil != err {
logger.Error("Plugin stdout not available: " + err.Error())
logger.Error("plugin stdout not available: " + err.Error())
}
t.waitGroup.Add(1)
t.done = make(chan bool, 1)
if err = cmd.Start(); err != nil {
return fmt.Errorf("Error running plugin: %s", err.Error())
return fmt.Errorf("error running plugin: %s", err.Error())
}
go t.handlePluginStderr(stderr)