mdeuser commented on a change in pull request #2334: Added --last Activation 
Flag 
URL: 
https://github.com/apache/incubator-openwhisk/pull/2334#discussion_r121007295
 
 

 ##########
 File path: tools/cli/go-whisk-cli/commands/activation.go
 ##########
 @@ -114,7 +114,11 @@ var activationGetCmd = &cobra.Command{
     PreRunE: setupClientConfig,
     RunE: func(cmd *cobra.Command, args []string) error {
         var field string
+        var err error
 
+        if args, err = lastFlag(args); err != nil {
+          return err
 
 Review comment:
   The `lastFlag` function seems to have some decent debug that seems 
sufficient.  That said, when an error occurs, the final failure message to the 
user should be that this command failed with the failure reason.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to