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:
@@ -109,7 +109,7 @@ func loadURL(url string, scraperConfig config, globalConfig GlobalConfig) (io.Re
|
||||
func urlFromCDP(url string, driverOptions scraperDriverOptions, globalConfig GlobalConfig) (io.Reader, error) {
|
||||
|
||||
if !driverOptions.UseCDP {
|
||||
return nil, fmt.Errorf("Url shouldn't be feetched through CDP")
|
||||
return nil, fmt.Errorf("URL shouldn't be fetched through CDP")
|
||||
}
|
||||
|
||||
sleepDuration := scrapeDefaultSleep
|
||||
|
||||
Reference in New Issue
Block a user