[#76] Do not print error message twice in CLI

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2020-10-12 17:21:38 +03:00 committed by Stanislav Bogatyrev
parent 80cd4039a8
commit 945bb723ed

View file

@ -44,7 +44,6 @@ var (
// 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)
}
}