bpoole16 commented on a change in pull request #2334: Added --last Activation
Flag
URL:
https://github.com/apache/incubator-openwhisk/pull/2334#discussion_r121493973
##########
File path: tools/cli/go-whisk-cli/commands/activation.go
##########
@@ -236,11 +237,11 @@ var activationResultCmd = &cobra.Command{
},
}
//lastFlag(args) retrieves the last activation with flag -l or --last
-//Param: Brings in []strings from args
+//Param: Brings in []strings from args and the name of the function that is
using it (for error feedback)
//Return: Returns an args([]string) with last ID used or the original args
with any errors
-func lastFlag(args []string) ([]string, error) {
+func lastFlag(args []string, funcName string) ([]string, error) {
Review comment:
I originally tried to put each error/debug in each separate function but I
wasn't able to get `"Unable to get result for xxxx: {{.err}}"` to display with
the actual error message (it would only display the literal {{.err}}) .
----------------------------------------------------------------
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