diff options
| author | Max Ushakov <ushmax@gmail.com> | 2018-12-21 17:53:33 +0300 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2018-12-24 19:25:18 +0000 |
| commit | 652d59861ee34b7cbef49cdd9da71fa822124e6e (patch) | |
| tree | 62b13a49e96b04e9aac9f34dbcf09a52cf11da7f /src/time | |
| parent | b32ee0a3c004d4ef79d92bd63200008456da50f3 (diff) | |
| download | go-git-652d59861ee34b7cbef49cdd9da71fa822124e6e.tar.gz | |
time: return ENOENT if a zoneinfo zip file is not found
Updates #20969
Change-Id: Ibcf0bf932d5b1de67c22c63dd8514ed7a5d198fb
Reviewed-on: https://go-review.googlesource.com/c/155538
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/time')
| -rw-r--r-- | src/time/zoneinfo_read.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/time/zoneinfo_read.go b/src/time/zoneinfo_read.go index b495217c06..d8d4070d5b 100644 --- a/src/time/zoneinfo_read.go +++ b/src/time/zoneinfo_read.go @@ -271,7 +271,7 @@ func get2(b []byte) int { func loadTzinfoFromZip(zipfile, name string) ([]byte, error) { fd, err := open(zipfile) if err != nil { - return nil, errors.New("open " + zipfile + ": " + err.Error()) + return nil, err } defer closefd(fd) |
