]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[autoboot] Add an iPXE error URI to the "nothing to boot" message
authorMichael Brown <mcb30@ipxe.org>
Mon, 28 Feb 2011 18:35:56 +0000 (18:35 +0000)
committerMichael Brown <mcb30@ipxe.org>
Mon, 28 Feb 2011 18:35:56 +0000 (18:35 +0000)
Change the message "No filename or root path specified" to include an
iPXE error URI.

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

index bb7d692efc0ee8f1fdd6edbebcb1c1ce146d42c2..407e73869853d6538eedcf7825e40b75f7489537 100644 (file)
@@ -185,8 +185,8 @@ int uriboot ( struct uri *filename, struct uri *root_path ) {
                        rc = 0;
                }
        } else {
-               printf ( "No filename or root path specified\n" );
                rc = -ENOENT;
+               printf ( "Nothing to boot: %s\n", strerror ( rc ) );
        }
 
  err_san_describe: