(cmd *cobra.Command, args []string, err error)
| 955 | } |
| 956 | |
| 957 | func actionParseError(cmd *cobra.Command, args []string, err error) error { |
| 958 | whisk.Debug(whisk.DbgError, "parseAction(%s, %s) error: %s\n", cmd.Name(), args, err) |
| 959 | |
| 960 | errMsg := wski18n.T( |
| 961 | "Invalid argument(s). {{.required}}", |
| 962 | map[string]interface{}{ |
| 963 | "required": err, |
| 964 | }) |
| 965 | |
| 966 | return nestedError(errMsg, err) |
| 967 | } |
| 968 | |
| 969 | func actionInsertError(action *whisk.Action, err error) error { |
| 970 | whisk.Debug(whisk.DbgError, "Client.Actions.Insert(%#v, false) error: %s\n", action, err) |