Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IRMA
Github mirrors
irmago
Commits
edef81b6
Commit
edef81b6
authored
Apr 30, 2019
by
David Venhoek
Committed by
Sietse Ringers
Apr 30, 2019
Browse files
Fix: RootCmd.Execute() already prints the error it returns, so dont do that twice.
parent
6ab21ac9
Changes
1
Hide whitespace changes
Inline
Side-by-side
irma/cmd/root.go
View file @
edef81b6
...
...
@@ -19,7 +19,6 @@ var RootCmd = &cobra.Command{
// This is called by main.main(). It only needs to happen once to the rootCmd.
func
Execute
()
{
if
err
:=
RootCmd
.
Execute
();
err
!=
nil
{
fmt
.
Println
(
err
)
os
.
Exit
(
-
1
)
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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