Commit 9832545d authored by Jeromy's avatar Jeromy

better error message from dagreader with bad protofbuf

parent 63e15abd
......@@ -3,6 +3,7 @@ package io
import (
"bytes"
"errors"
"fmt"
"io"
"os"
......@@ -113,7 +114,7 @@ func (dr *DagReader) precalcNextBuf() error {
pb := new(ftpb.Data)
err = proto.Unmarshal(nxt.Data, pb)
if err != nil {
return err
return fmt.Errorf("incorrectly formatted protobuf: %s", err)
}
switch pb.GetType() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment