Browse Source

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

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 13 years ago
parent
commit
9e162121b1
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      src/image/script.c

+ 3
- 2
src/image/script.c View File

261
 
261
 
262
 	/* Sanity check */
262
 	/* Sanity check */
263
 	if ( ! script ) {
263
 	if ( ! script ) {
264
-		printf ( "Not in a script\n" );
265
-		return -ENOTTY;
264
+		rc = -ENOTTY;
265
+		printf ( "Not in a script: %s\n", strerror ( rc ) );
266
+		return rc;
266
 	}
267
 	}
267
 
268
 
268
 	/* Parse label */
269
 	/* Parse label */

Loading…
Cancel
Save