diff --git a/historic/jam/src/make1.c b/historic/jam/src/make1.c index cc9c2b251..71382b09b 100644 --- a/historic/jam/src/make1.c +++ b/historic/jam/src/make1.c @@ -535,8 +535,17 @@ make1cmds( ACTIONS *a0 ) { /* Too long and not splittable. */ - printf( "%s actions too long (max %d)!\n", + printf( "%s actions too long (max %d):\n", rule->name, MAXLINE ); + + /* Tell the user what didn't fit */ + cmd = cmd_new( + rule, list_copy( L0, nt ), + list_sublist( ns, start, chunk ), + list_new( L0, newstr( "%" ) ) ); + + printf( cmd->buf ); + exit( EXITBAD ); } } diff --git a/jam_src/make1.c b/jam_src/make1.c index cc9c2b251..71382b09b 100644 --- a/jam_src/make1.c +++ b/jam_src/make1.c @@ -535,8 +535,17 @@ make1cmds( ACTIONS *a0 ) { /* Too long and not splittable. */ - printf( "%s actions too long (max %d)!\n", + printf( "%s actions too long (max %d):\n", rule->name, MAXLINE ); + + /* Tell the user what didn't fit */ + cmd = cmd_new( + rule, list_copy( L0, nt ), + list_sublist( ns, start, chunk ), + list_new( L0, newstr( "%" ) ) ); + + printf( cmd->buf ); + exit( EXITBAD ); } }