]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[script] Add an iPXE error URI to the "not in a script" message
authorMichael Brown <mcb30@ipxe.org>
Mon, 7 Mar 2011 03:11:14 +0000 (03:11 +0000)
committerMichael Brown <mcb30@ipxe.org>
Mon, 7 Mar 2011 03:11:14 +0000 (03:11 +0000)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/image/script.c

index 3344c679a117dcdd86f26b98c040282fd96fce65..6069d80f76d7971beb139c51700d530546592034 100644 (file)
@@ -261,8 +261,9 @@ static int goto_exec ( int argc, char **argv ) {
 
        /* Sanity check */
        if ( ! script ) {
-               printf ( "Not in a script\n" );
-               return -ENOTTY;
+               rc = -ENOTTY;
+               printf ( "Not in a script: %s\n", strerror ( rc ) );
+               return rc;
        }
 
        /* Parse label */