Page 1 of 1

Why are error messages prefixed?

Posted: Mon 14 Aug 2006 21:19
by snorkel
When I get a error message back it looks like this:


#42S02Table 'mysq.user' doesn't exist

why is this prefix on the message and how can I get rid of it?

Thanks,

Snorkel

Posted: Wed 16 Aug 2006 10:53
by Antaeus
This error message is retrieved from MySQL Server and showed without changes. You can catch this exception, using try ... except statement, change error message and raise the error with changed error message.

Posted: Tue 22 Aug 2006 21:36
by ben
or you can use string functions to remove # and numbers from the message. very easy...