]> Cypherpunks repositories - gostls13.git/commitdiff
don't print binary data. add TODO for better errors.
authorRob Pike <r@golang.org>
Thu, 30 Apr 2009 06:33:48 +0000 (23:33 -0700)
committerRob Pike <r@golang.org>
Thu, 30 Apr 2009 06:33:48 +0000 (23:33 -0700)
TBR=rsc
DELTA=2  (1 added, 0 deleted, 1 changed)
OCL=28066
CL=28070

src/lib/time/zoneinfo.go

index 124ae0df495582517ef0fb525342e28e471f0a4c..15de5a7d1f120a6d5e9014461f18334018937496 100644 (file)
@@ -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.