Skip to content
Browse files

Merge pull request #176 from clayhinson/master

throw Frapi_Error by default in generated Actions
  • Loading branch information...
2 parents 5bce452 + ecb5e6a commit 271b51a7c5b92e7ff663c90aaec3babd2ec158e3 @helgi helgi committed Jun 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/frapi/admin/application/modules/default/models/Action.php
View
2 src/frapi/admin/application/modules/default/models/Action.php
@@ -525,7 +525,7 @@ private function generateAction($name, $properties, $description = false, $route
if (!empty($properties)) {
$executeActionBody = ' $valid = $this->hasRequiredParameters($this->requiredParams);
if ($valid instanceof Frapi_Error) {
- return $valid;
+ throw $valid;
}';
}

0 comments on commit 271b51a

Please sign in to comment.
Something went wrong with that request. Please try again.