From 252692f140eeb1bcebfacd62ba51df8b1377c880 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Wed, 26 Mar 2008 01:31:20 +0000 Subject: [PATCH] [INFORMER] * NEW: Do not abort if a component information file cannot be written. git-svn-id: svn://localhost/gambas/trunk@1259 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- main/gbc/gbi.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/main/gbc/gbi.c b/main/gbc/gbi.c index ee1a7d096..8c93323a8 100644 --- a/main/gbc/gbi.c +++ b/main/gbc/gbi.c @@ -504,11 +504,17 @@ static void analyze(const char *comp, bool include) out_info = fopen(path_info, "w"); if (!out_info) - error(TRUE, "Cannot write file: %s", path_info); + { + error(FALSE, "Cannot write file: %s", path_info); + return; + } out_list = fopen(path_list, "w"); if (!out_list) - error(TRUE, "Cannot write file: %s", path_list); + { + error(FALSE, "Cannot write file: %s", path_list); + return; + } } fflush(stdout);