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
cbe86a91
Commit
cbe86a91
authored
Sep 14, 2018
by
Overbool
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(object): print object diff error
License: MIT Signed-off-by:
Overbool
<
overbool.xu@gmail.com
>
parent
e4e35047
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
core/commands/object/diff.go
core/commands/object/diff.go
+4
-0
No files found.
core/commands/object/diff.go
View file @
cbe86a91
...
...
@@ -74,6 +74,10 @@ Example:
}
changes
,
err
:=
api
.
Object
()
.
Diff
(
req
.
Context
(),
pa
,
pb
)
if
err
!=
nil
{
res
.
SetError
(
err
,
cmdkit
.
ErrNormal
)
return
}
out
:=
make
([]
*
dagutils
.
Change
,
len
(
changes
))
for
i
,
change
:=
range
changes
{
...
...
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