Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-unixfs
Commits
e6119c64
Commit
e6119c64
authored
9 years ago
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better error message from dagreader with bad protofbuf
parent
01c574f2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
io/dagreader.go
io/dagreader.go
+2
-1
No files found.
io/dagreader.go
View file @
e6119c64
...
...
@@ -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
()
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment