Skip to content
Snippets Groups Projects

Resolve "Error handling in event publishing via entity services could be improved"

5 files
+ 676
5
Compare changes
  • Side-by-side
  • Inline
Files
5
+ 1
4
@@ -59,10 +59,7 @@ var loginCmd = &cobra.Command{
// log out to remove active session in case an user is already logged in
if userToken != "" {
_, err := api.Logout(createContextWithAuthorization(), viper.GetString("controllerAPIEndpoint"), nbUserName)
if err != nil {
pterm.Error.Println("error logging out active user", err)
}
_, _ = api.Logout(createContextWithAuthorization(), viper.GetString("controllerAPIEndpoint"), nbUserName)
}
// TODO: maybe add credentials in context instead of context.TODO()
Loading