bigcommerce/bigcommerce-api-ruby — pull request #35 by squish (2013-03-29 13:49:45+00:00)
Title: Fix error handling

Fixes error handling. Current implementation incorrectly returns a JSONified structure (string), rather than a structure. Returning a hash in an error condition isn't the right approach anyway as it makes get_products.each not possible. An exception is the better approach which is what this patch does.