Explorar el Código

[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 hace 13 años
padre
commit
9e162121b1
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3
    2
      src/image/script.c

+ 3
- 2
src/image/script.c Ver fichero

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

Loading…
Cancelar
Guardar