Permalink
Browse files

throw Frapi_Error by default in Action template. #109

  • Loading branch information...
1 parent 5bce452 commit ecb5e6a363682e46e0fcf05b9159cc40068c9185 @clayhinson clayhinson committed Jun 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 ecb5e6a

Please sign in to comment.