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
2e8ead8d
Commit
2e8ead8d
authored
Mar 21, 2019
by
Jakub Sztandera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix error handling
License: MIT Signed-off-by:
Jakub Sztandera
<
kubuxu@protonmail.ch
>
parent
5a1a03bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
core/commands/version.go
core/commands/version.go
+7
-3
No files found.
core/commands/version.go
View file @
2e8ead8d
...
...
@@ -118,9 +118,13 @@ Print out all dependencies and their versions.`,
}
return
}
res
.
Emit
(
toDependency
(
&
info
.
Main
))
if
err
:=
res
.
Emit
(
toDependency
(
&
info
.
Main
));
err
!=
nil
{
return
err
}
for
_
,
dep
:=
range
info
.
Deps
{
res
.
Emit
(
toDependency
(
dep
))
if
err
:=
res
.
Emit
(
toDependency
(
dep
));
err
!=
nil
{
return
err
}
}
return
nil
},
...
...
@@ -131,7 +135,7 @@ Print out all dependencies and their versions.`,
fmt
.
Fprintf
(
w
,
" => %s"
,
dep
.
ReplacedBy
)
}
fmt
.
Fprintf
(
w
,
"
\n
"
)
return
errors
.
New
(
"test"
)
return
nil
}),
},
}
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