You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by gi...@git.apache.org on 2017/09/05 15:41:21 UTC

[GitHub] tardieu opened a new issue #2699: Output dictionary with error field

tardieu opened a new issue #2699: Output dictionary with error field
URL: https://github.com/apache/incubator-openwhisk/issues/2699
 
 
   When an action outputs a dictionary with an `error` field, the other fields are dropped from the output dictionary, for example:
   
   ```
   $ wsk action invoke /whisk.system/utils/echo -br -p statusCode 404 -p error foo -p message bar
   {
       "error": "foo"
   }
   ```
   
   This is confusing and forces the action programmer to carefully wrap and unwrap things like error codes. I would prefer all the fields to be preserved.
   
   This appears to be related to closed issue #40. The last comment on the issue suggests that it was fixed, but I don't understand if and how it was fixed.
 
----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services