From d75dc33c9a17c9ed4fb7be91417768763c99129c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Fri, 21 Mar 2008 03:07:04 +0000 Subject: [PATCH] [COMPILER] * NEW: Be more verbose if a component list file is not found. git-svn-id: svn://localhost/gambas/trunk@1223 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- main/gbc/gbc_compile.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main/gbc/gbc_compile.c b/main/gbc/gbc_compile.c index 1d7084e82..8ee90b161 100644 --- a/main/gbc/gbc_compile.c +++ b/main/gbc/gbc_compile.c @@ -98,8 +98,6 @@ static void add_list_file(char *library) path = (char *)FILE_cat(COMP_info_path, library, NULL); strcat(path, ".list"); - /*printf("Reading component list file %s\n", path);*/ - fi = fopen(path, "r"); if (!fi) @@ -116,7 +114,10 @@ static void add_list_file(char *library) some classes won't be declared. */ if (!fi) + { + fprintf(stderr, "Cannot read component list file: %s\n", path); return; + } for(;;) {