aboutsummaryrefslogtreecommitdiff
path: root/trillian.go
diff options
context:
space:
mode:
Diffstat (limited to 'trillian.go')
-rw-r--r--trillian.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/trillian.go b/trillian.go
index c20901f..233d5e8 100644
--- a/trillian.go
+++ b/trillian.go
@@ -24,7 +24,7 @@ func checkQueueLeaf(rsp *trillian.QueueLeafResponse, err error) error {
func checkGetLeavesByRange(req *GetEntriesRequest, rsp *trillian.GetLeavesByRangeResponse, err error) (int, error) {
if err != nil || rsp == nil || len(rsp.Leaves) == 0 || rsp.SignedLogRoot == nil || rsp.SignedLogRoot.LogRoot == nil {
- return http.StatusInternalServerError, fmt.Errorf("%v", err)
+ return http.StatusInternalServerError, fmt.Errorf("%v", err) // TODO: break up into multiple returns?
}
if len(rsp.Leaves) > int(req.End-req.Start+1) {
return http.StatusInternalServerError, fmt.Errorf("too many leaves: %d for [%d,%d]", len(rsp.Leaves), req.Start, req.End)