On Apr 22, 2:01 pm, Baz <[email protected]> wrote:
> Howdy,
>
> > If someone have any suggestions, even along the lines "Where did you
> > learn to code like this?! This is how it is done:..."
>
> What you are doing is definitely ok, but I wonder what you are gaining out
> of checking specifically for the db, especially since the error msg to the
> user is relatively generic: "This application encountered an error (no
> database)...."
> Why not just use the global onerror() to handle issues like this and more.
> You can still display your msg and log all the details. The only time I use
> more granular error handling is if I need to communicate something special
> to the client, or handle the error in a special way. Just some thoughts.

Thank you for replying.
_Users_ probably don't know anything beyond "no database": after all,
they cannot do anything about it anyway.  _I_, OTOH, would like to
know what exactly happened, so I log the detailed error message which
I can analyze when this happens.
For now I am just checking if the application is running on OpenBD by
comparing server.coldfusion.productname with "Open BlueDragon" and use
different cflog tags.

> I'm not sure about your second issue [CF implementation of CFMX_COMPAT
> en/decryption] (I'm not a BD expert), but have you looked at cflib.org
> for a possible solution?

Thanks for the pointer.  Unfortunately, nothing relevant there.
Still, I found elsewhere that this seems to be simple XOr encryption;
I'll post an implementation when I figure out the details.

--~--~---------~--~----~------------~-------~--~----~
Open BlueDragon Public Mailing List
 http://groups.google.com/group/openbd?hl=en
 official site @ http://www.openbluedragon.org/

!! save a network - trim replies before posting !!
-~----------~----~----~----~------~----~------~--~---

Reply via email to