Katello/katello — pull request #986 by ehelms (2012-11-02 12:14:16+00:00)
Title: 871086 - Changes to respond with template validation errors as bad reque...

...sts instead of internal server errors.

Adds rescue for template validation exceptions into API controller to have invalid template execeptions returned as 400 bad requests instead of 500 server errors. This is inspired by the bug mentioned above which causes the CLI to present to the user a generic 500 error and masking the real validation error when trying to export an invalid template.