Ah, errno. How well I've learned to hate you from MySQL's error
messages. "Something bad happened! Errno 131! But I'm not going to tell
you what that means!"

MySQL does, however, come with a perror command. Thusly:
$ perror 131
MySQL error code 131: Command not supported by database

Amazing! Filling the gaps with a commandline tool! Too bad I'm usually
remote from my database. On the plus side, it handles system errors too:
$ perror 104
OS error code 104:  Connection reset by peer

Still, MySQL folks? Think you could just call perror and return the
string along with the numeric code? It'd be a good bit less hateful.

-- 
<>                       :#,_@                          v
<^ " Michael Leuchtenburg  |  http://slashhome.org/ " +73
^  " cell: 413.433.0739                             " +7<

Reply via email to