librelist archives

« back to archive

Friendlier Error Messages

Friendlier Error Messages

From:
Joshua Schairbaum
Date:
2011-05-18 @ 17:37
I was copying some RETS4R client code from one project to another and I
missed adding the configuration for the listing_service. In my specs, I
simply continued to receive 'stack level too deep' messages. Realizing that
this instance was completely my fault, I'm still wondering if there's a
better way to display errors for missing configurations.

I'd like to investigate and make this more user-friendly, but before I do, I
wanted to get anyone's opinion on the matter. I'm not sure about the how,
but for the what, I'd like to possibly place a guard on some initialize
functions that will return a specific error message if the configuration
isn't present.

JS

Re: [rets4r] Friendlier Error Messages

From:
Braxton Beyer
Date:
2011-05-18 @ 18:47
I would caution about requiring the configuration file.  We actually dont
use the config file as we store all our settings in a database.

On Wed, May 18, 2011 at 12:37, Joshua Schairbaum <
joshua.schairbaum@gmail.com> wrote:

> I was copying some RETS4R client code from one project to another and I
> missed adding the configuration for the listing_service. In my specs, I
> simply continued to receive 'stack level too deep' messages. Realizing that
> this instance was completely my fault, I'm still wondering if there's a
> better way to display errors for missing configurations.
>
> I'd like to investigate and make this more user-friendly, but before I do,
> I wanted to get anyone's opinion on the matter. I'm not sure about the how,
> but for the what, I'd like to possibly place a guard on some initialize
> functions that will return a specific error message if the configuration
> isn't present.
>
> JS
>



-- 
Braxton Beyer
Your Austin Realtor
braxtonbeyer.com
displet.com
512.814.7237

Re: [rets4r] Friendlier Error Messages

From:
Joshua Schairbaum
Date:
2011-05-18 @ 18:54
That's a great point, I'll dig further into a better approach.

JS
On May 18, 2011 2:48 PM, "Braxton Beyer" <braxton@braxtonbeyer.com> wrote:
> I would caution about requiring the configuration file. We actually dont
> use the config file as we store all our settings in a database.
>
> On Wed, May 18, 2011 at 12:37, Joshua Schairbaum <
> joshua.schairbaum@gmail.com> wrote:
>
>> I was copying some RETS4R client code from one project to another and I
>> missed adding the configuration for the listing_service. In my specs, I
>> simply continued to receive 'stack level too deep' messages. Realizing
that
>> this instance was completely my fault, I'm still wondering if there's a
>> better way to display errors for missing configurations.
>>
>> I'd like to investigate and make this more user-friendly, but before I
do,
>> I wanted to get anyone's opinion on the matter. I'm not sure about the
how,
>> but for the what, I'd like to possibly place a guard on some initialize
>> functions that will return a specific error message if the configuration
>> isn't present.
>>
>> JS
>>
>
>
>
> --
> Braxton Beyer
> Your Austin Realtor
> braxtonbeyer.com
> displet.com
> 512.814.7237