From: Chris Howey Date: Sun, 26 May 2013 14:27:04 +0000 (-0500) Subject: Small error reporting fix X-Git-Tag: v1.7.2~360 X-Git-Url: https://go.fuhry.dev/?a=commitdiff_plain;h=82ee0c3c63686870a532e7ce81501a10bd228461;p=fsnotify.git Small error reporting fix --- diff --git a/fsnotify_symlink_test.go b/fsnotify_symlink_test.go index bb71d2f..4c884b8 100644 --- a/fsnotify_symlink_test.go +++ b/fsnotify_symlink_test.go @@ -22,7 +22,7 @@ func TestFsnotifyFakeSymlink(t *testing.T) { const testDir string = "_test" // Create directory to watch - if os.Mkdir(testDir, 0777) != nil { + if err := os.Mkdir(testDir, 0777); err != nil { t.Fatalf("Failed to create test directory: %s", err) } defer os.RemoveAll(testDir)