You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2022/03/01 07:48:47 UTC

[GitHub] [camel-k] tadayosi commented on issue #3029: Why do we println errors in `kamel local` instead of returning them?

tadayosi commented on issue #3029:
URL: https://github.com/apache/camel-k/issues/3029#issuecomment-1055121766


   Ah so we want to run the `deinit()` no matter how the `run()` goes?
   ```
   			if err := options.deinit(); err != nil {
   				return err
   			}
   ```
   Then why don't we use `defer` instead?  And furthermore, probably it's better to use `PostRunE` (and `PreRunE`) instead of doing everything in `RunE`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org