From edc87a91385e30bf6207c9f63a96ee3778895aae Mon Sep 17 00:00:00 2001 From: Caleb Spare Date: Mon, 29 Oct 2018 14:20:05 -0700 Subject: [PATCH] Fix small error-handling bug in Go bindings --- bindings/go/src/fdb/range.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/go/src/fdb/range.go b/bindings/go/src/fdb/range.go index 01d2ef59cc..a307d1d00d 100644 --- a/bindings/go/src/fdb/range.go +++ b/bindings/go/src/fdb/range.go @@ -311,7 +311,7 @@ func PrefixRange(prefix []byte) (KeyRange, error) { copy(begin, prefix) end, e := Strinc(begin) if e != nil { - return KeyRange{}, nil + return KeyRange{}, e } return KeyRange{Key(begin), Key(end)}, nil }