]> Cypherpunks repositories - gostls13.git/commit
os: have UserCacheDir return an error on failure
authorAndrew Bonventre <andybons@golang.org>
Mon, 25 Jun 2018 18:26:53 +0000 (14:26 -0400)
committerAndrew Bonventre <andybons@golang.org>
Mon, 25 Jun 2018 18:59:39 +0000 (18:59 +0000)
commit50bd1c4d4eb4fac8ddeb5f063c099daccfb71b26
treed09e8c91e7c137ec23621d13fcb065103576526d
parent4f172e7a75d6deef4441c96e1e01c31159f54a6c
os: have UserCacheDir return an error on failure

Previously, it would return an empty string if it
could not determine the user's cache directory.
Return an error instead.

Change-Id: I74f00b1ad3858efa3fe2700c599271ebfe5764b6
Reviewed-on: https://go-review.googlesource.com/120757
Run-TryBot: Andrew Bonventre <andybons@golang.org>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
api/go1.11.txt
src/os/file.go