diff options
| author | Rob Pike <r@golang.org> | 2009-04-29 23:33:48 -0700 |
|---|---|---|
| committer | Rob Pike <r@golang.org> | 2009-04-29 23:33:48 -0700 |
| commit | 5dc95206f2088a7b2a855c5f7ac820afc6a42cbc (patch) | |
| tree | 0740f18a115bf89c146f45c9a8630d308ba88092 /src/lib | |
| parent | 93831d25db1db7e1c09888346a8723671293f91c (diff) | |
| download | go-5dc95206f2088a7b2a855c5f7ac820afc6a42cbc.tar.xz | |
don't print binary data. add TODO for better errors.
TBR=rsc
DELTA=2 (1 added, 0 deleted, 1 changed)
OCL=28066
CL=28070
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/time/zoneinfo.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/time/zoneinfo.go b/src/lib/time/zoneinfo.go index 124ae0df49..15de5a7d1f 100644 --- a/src/lib/time/zoneinfo.go +++ b/src/lib/time/zoneinfo.go @@ -28,7 +28,8 @@ type TimeZoneError struct { } func error(bytes []byte) os.Error { - return TimeZoneError{ `time: malformed zoneinfo: "` + string(bytes) + `"` }; + // TODO(rsc): provide better diagnostics + return TimeZoneError{ "time: malformed zoneinfo"}; } // Simple I/O interface to binary blob of data. |
