restyii icon indicating copy to clipboard operation
restyii copied to clipboard

Adding error inspection of resource fetched by schema.php

Open JorgenSmith opened this issue 11 years ago • 0 comments

Fixes up my previous PR https://github.com/codemix/restyii/pull/36 . In some cases the $config variable will hold a HTTP exception, and we need to catch this so as to enable more meaningful errors to be returned.

The patch will give me e.g. Error fetching 'productVariant'. CHttpException: Unable to resolve the request "productVariant/options".

Instead of `exception 'CException' with message 'Property "Restyii\Client\Schema\Resource.code" is not defined.``

JorgenSmith avatar Aug 30 '13 07:08 JorgenSmith