Quellcode durchsuchen

[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 vor 13 Jahren
Ursprung
Commit
9e162121b1
1 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen
  1. 3
    2
      src/image/script.c

+ 3
- 2
src/image/script.c Datei anzeigen

@@ -261,8 +261,9 @@ static int goto_exec ( int argc, char **argv ) {
261 261
 
262 262
 	/* Sanity check */
263 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 269
 	/* Parse label */

Laden…
Abbrechen
Speichern