returning Frapi_Error from an action errors when output is JSON #109

clayhinson opened this Issue Mar 3, 2012 · 2 comments


None yet
3 participants

clayhinson commented Mar 3, 2012

The JSON output class expects its data to be an array, and cannot handle a Frapi_Error object.

throwing the Frapi_Error causes it to be handled properly, but the default code template uses return if validation errors occur.

The generated action should throw Frapi_Error by default and the documentation may need to be updated to reflect this.


dshafik commented Jun 16, 2012

From the IRC meeting: We're going to update the template to correctly throw the error instead of returning it.

@ghost ghost assigned clayhinson Jun 16, 2012

clayhinson added a commit to clayhinson/frapi that referenced this issue Jun 28, 2012

@helgi helgi closed this Jun 28, 2012

MunGell pushed a commit to MunGell/frapi that referenced this issue Mar 6, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment