aboutsummaryrefslogtreecommitdiff
path: root/src/image
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2011-03-07 03:11:14 +0000
committerMichael Brown <mcb30@ipxe.org>2011-03-07 03:11:14 +0000
commit9e162121b1a4908e586b2ad5d24d2de41255079f (patch)
tree89259c4743d77f2c09d5e7c175115d5f093a8c47 /src/image
parent2dd23e1ee9b5d0c7a233e9f8e3dba3eef9b793bc (diff)
downloadipxe-9e162121b1a4908e586b2ad5d24d2de41255079f.zip
ipxe-9e162121b1a4908e586b2ad5d24d2de41255079f.tar.gz
ipxe-9e162121b1a4908e586b2ad5d24d2de41255079f.tar.bz2
[script] Add an iPXE error URI to the "not in a script" message
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/image')
-rw-r--r--src/image/script.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/image/script.c b/src/image/script.c
index 3344c67..6069d80 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 */