diff --git a/src/image/script.c b/src/image/script.c index 3344c679a..6069d80f7 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 */