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-dms3
Commits
bde01561
Commit
bde01561
authored
10 years ago
by
Matt Bell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core/commands2: add: Handle 'addDagnode' errors
parent
89002295
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
core/commands2/add.go
core/commands2/add.go
+10
-2
No files found.
core/commands2/add.go
View file @
bde01561
...
...
@@ -157,9 +157,17 @@ func addDir(n *core.IpfsNode, dir cmds.File, added *AddOutput) (*dag.Node, error
}
}
addDagnode
(
added
,
dir
.
FileName
(),
tree
)
err
:=
addDagnode
(
added
,
dir
.
FileName
(),
tree
)
if
err
!=
nil
{
return
nil
,
err
}
err
=
addNode
(
n
,
tree
)
if
err
!=
nil
{
return
nil
,
err
}
return
tree
,
addNode
(
n
,
tree
)
return
tree
,
nil
}
// addDagnode adds dagnode info to an output object
...
...
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