mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user