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-merkledag
Commits
90386a37
Commit
90386a37
authored
Mar 24, 2017
by
Kevin Atkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merkledag: provide better diagnostics when Prefix.Sum fails
License: MIT Signed-off-by:
Kevin Atkinson
<
k@kevina.org
>
parent
c053e4d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
node.go
node.go
+1
-0
No files found.
node.go
View file @
90386a37
...
...
@@ -266,6 +266,7 @@ func (n *ProtoNode) Cid() *cid.Cid {
c
,
err
:=
n
.
Prefix
.
Sum
(
n
.
RawData
())
if
err
!=
nil
{
// programmer error
err
=
fmt
.
Errorf
(
"invalid CID of length %d: %x: %v"
,
len
(
n
.
RawData
()),
n
.
RawData
(),
err
)
panic
(
err
)
}
...
...
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