From 2e6f58d76f583abb4fa6ff3b205847a53b22e952 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Tue, 30 Apr 2002 14:13:09 +0000 Subject: [PATCH] Better error reporting for IMPORT [SVN r13584] --- src/engine/builtins.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/engine/builtins.c b/src/engine/builtins.c index 4cc3bf63e..817334119 100644 --- a/src/engine/builtins.c +++ b/src/engine/builtins.c @@ -494,7 +494,12 @@ builtin_import( if ( source_name || target_name ) { backtrace_line( frame->prev ); - printf( "import error: length of source and target rule name lists don't match" ); + printf( "import error: length of source and target rule name lists don't match!\n" ); + printf( " source: " ); + list_print( source_rules ); + printf( "\n target: " ); + list_print( target_rules ); + printf( "\n" ); backtrace( frame->prev ); exit(1); }