summaryrefslogtreecommitdiff
path: root/rrdformat/rrdbinary/errors.go
diff options
context:
space:
mode:
Diffstat (limited to 'rrdformat/rrdbinary/errors.go')
-rw-r--r--rrdformat/rrdbinary/errors.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/rrdformat/rrdbinary/errors.go b/rrdformat/rrdbinary/errors.go
index 984e0a5..1e61af0 100644
--- a/rrdformat/rrdbinary/errors.go
+++ b/rrdformat/rrdbinary/errors.go
@@ -13,7 +13,7 @@ type BinaryError struct {
ctxEOF bool
}
-func newBinError(msg string, ctxFile []byte, ctxStart, ctxLen int) error {
+func NewBinError(msg string, ctxFile []byte, ctxStart, ctxLen int) error {
if ctxStart+ctxLen > len(ctxFile) {
ctxLen = len(ctxFile) - ctxStart
}