summaryrefslogtreecommitdiff
path: root/src/pkg/gob/error.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/gob/error.go')
-rw-r--r--src/pkg/gob/error.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pkg/gob/error.go b/src/pkg/gob/error.go
index b053761fb..bfd38fc16 100644
--- a/src/pkg/gob/error.go
+++ b/src/pkg/gob/error.go
@@ -22,8 +22,9 @@ type gobError struct {
}
// errorf is like error but takes Printf-style arguments to construct an os.Error.
+// It always prefixes the message with "gob: ".
func errorf(format string, args ...interface{}) {
- error(fmt.Errorf(format, args...))
+ error(fmt.Errorf("gob: "+format, args...))
}
// error wraps the argument error and uses it as the argument to panic.