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:
@@ -269,10 +269,10 @@ func (r *repository) executeFindQuery(body string, args []interface{}, sortAndPa
|
||||
idsResult, idsErr = r.runIdsQuery(idsQuery, args)
|
||||
|
||||
if countErr != nil {
|
||||
return nil, 0, fmt.Errorf("Error executing count query with SQL: %s, args: %v, error: %s", countQuery, args, countErr.Error())
|
||||
return nil, 0, fmt.Errorf("error executing count query with SQL: %s, args: %v, error: %s", countQuery, args, countErr.Error())
|
||||
}
|
||||
if idsErr != nil {
|
||||
return nil, 0, fmt.Errorf("Error executing find query with SQL: %s, args: %v, error: %s", idsQuery, args, idsErr.Error())
|
||||
return nil, 0, fmt.Errorf("error executing find query with SQL: %s, args: %v, error: %s", idsQuery, args, idsErr.Error())
|
||||
}
|
||||
|
||||
return idsResult, countResult, nil
|
||||
|
||||
Reference in New Issue
Block a user