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:
@@ -193,12 +193,12 @@ func IsZipFileUncompressed(path string) (bool, error) {
|
||||
func WriteFile(path string, file []byte) error {
|
||||
pathErr := EnsureDirAll(filepath.Dir(path))
|
||||
if pathErr != nil {
|
||||
return fmt.Errorf("Cannot ensure path %s", pathErr)
|
||||
return fmt.Errorf("cannot ensure path %s", pathErr)
|
||||
}
|
||||
|
||||
err := ioutil.WriteFile(path, file, 0755)
|
||||
if err != nil {
|
||||
return fmt.Errorf("Write error for thumbnail %s: %s ", path, err)
|
||||
return fmt.Errorf("write error for thumbnail %s: %s ", path, err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user