Przeglądaj źródła

[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 lat temu
rodzic
commit
9e162121b1
1 zmienionych plików z 3 dodań i 2 usunięć
  1. 3
    2
      src/image/script.c

+ 3
- 2
src/image/script.c Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz