in reply to Are their Documented Default Exit Codes for Certain Modules?
If at all possible, relay whatever error message the module or operating system returns in verbatim to the user and then optionally ADD hints for well known error messages. Include enough information to actually troubleshoot the problem, such as the IP address and port number. Perhaps the port is blocked by a firewall? Someone typed the IP address wrong in a config file?
Good:
No route to host Hint: Is the FOOBAR server running?
Better:
Unexpected error connecting to #.#.#.# tcp/#: No route to host Hint: Is the FOOBAR server running?
Bad:
Error 111
Infuriating:
Server PC down
Time flies when you don't know what you're doing
|
|---|