]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[hci] Use http://ipxe.org/<errno> instead of raw error numbers
authorMichael Brown <mcb30@ipxe.org>
Tue, 19 Oct 2010 05:14:22 +0000 (06:14 +0100)
committerMichael Brown <mcb30@ipxe.org>
Tue, 19 Oct 2010 05:14:22 +0000 (06:14 +0100)
commit4995ffa438d3bc9cd85a7622d0e2433efeb5b03f
tree2c0180ef4f7b3945396526f38a783c6a13d03040
parent9ed3bc498c984f6cf2a167ec7b35ef849e41ac18
[hci] Use http://ipxe.org/<errno> instead of raw error numbers

Users tend to gloss over cryptic-looking error messages such as

  "Boot failed: Exec format error (Error 0x2e852001)"

In particular, users tend not to report the error number, which is the
single most useful piece of diagnostic information in an iPXE error
message.  Try replacing the "Error 0x2e852001" portion with a URL,
giving

  "Boot failed: Exec format error (http://ipxe.org/2e852001)"

in the hope that users will, upon seeing something that is
recognisably a URL, try viewing it in a web browser.  Such users will
be greeted by a web page containing a more detailed description of the
error (automatically generated from the einfo text), including links
to each line of code that might generate the error, and a section for
additional user-contributed notes.  At the time of writing, a user who
visits http://ipxe.org/2e852001 would see a note saying

  "This error usually indicates that the SAN disk is empty, and does
   not yet contain a bootable operating system."

which may be more useful than "Exec format error (Error 0x2e852001)".

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/hci/strerror.c