david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[script] Add an iPXE error URI to the "not in a script" message

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2011-03-07 03:11:14 +00:00
parent 2dd23e1ee9
commit 9e162121b1
1 changed files with 3 additions and 2 deletions

View 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 */