From: Michael Brown Date: Mon, 7 Mar 2011 03:11:14 +0000 (+0000) Subject: [script] Add an iPXE error URI to the "not in a script" message X-Git-Tag: v1.20.1~2269 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e162121b1a4908e586b2ad5d24d2de41255079f;p=thirdparty%2Fipxe.git [script] Add an iPXE error URI to the "not in a script" message Signed-off-by: Michael Brown --- diff --git a/src/image/script.c b/src/image/script.c index 3344c679a..6069d80f7 100644 --- a/src/image/script.c +++ b/src/image/script.c @@ -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 */