Fix linter list and fix errors discovered by new staticcheck

This commit is contained in:
Andrey Smirnov
2019-01-20 00:01:17 +03:00
parent a64807efda
commit 3b5840e248
8 changed files with 9 additions and 23 deletions

View File

@@ -13,7 +13,7 @@ func DirIsAccessible(filename string) error {
_, err := os.Stat(filename)
if err != nil {
if !os.IsNotExist(err) {
return fmt.Errorf("Something went wrong, %v", err)
return fmt.Errorf("error checking directory '%s': %s", filename, err)
}
} else {
if unix.Access(filename, unix.W_OK) != nil {