3200: Improve error handling in Workbench's API client.
authorBrett Smith <brett@curoverse.com>
Wed, 23 Jul 2014 20:50:18 +0000 (16:50 -0400)
committerBrett Smith <brett@curoverse.com>
Thu, 24 Jul 2014 14:58:45 +0000 (10:58 -0400)
commit7223231e30b3e0e0b488f8db6d7b1749117a05e9
tree0eaa63283abf10cd18fa566c2e74451e4b166e70
parent315312d808d6b8144d7638b108c0a02be3c14f46
3200: Improve error handling in Workbench's API client.

* Fix the class used for error responses that can be parsed but don't
  have a dedicated subclass.

* Ensure that exception.api_response[:errors] is always an array.

This improves the error reporting for #3207.
apps/workbench/app/models/arvados_api_client.rb