From f4dfedee81f230c4b880a63954d9fd89579c7679 Mon Sep 17 00:00:00 2001 From: Kenneth Davis Date: Thu, 28 Dec 2023 11:47:33 -0600 Subject: [PATCH 1/2] consider the failure to open a regexp file a 'soft' error refs #101 --- src/librt/regionfix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librt/regionfix.c b/src/librt/regionfix.c index 7fb2a0e8c92..dfa3e1c5dae 100644 --- a/src/librt/regionfix.c +++ b/src/librt/regionfix.c @@ -71,7 +71,7 @@ rt_regionfix(struct rt_i *rtip) fp = fopen(file, "rb"); if (fp == NULL) { - if (rtip->rti_region_fix_file) perror(file); + if (rtip->rti_region_fix_file) bu_log("%s: unable to open REGEXP file\n", file); bu_vls_free(&name); return; } From 254d02916964c5d5a7b94b45fda84252c5ca26c5 Mon Sep 17 00:00:00 2001 From: Kenneth Davis Date: Fri, 29 Dec 2023 08:39:12 -0600 Subject: [PATCH 2/2] rework the region fix file message for readability refs #101 --- src/librt/regionfix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librt/regionfix.c b/src/librt/regionfix.c index dfa3e1c5dae..11aa7a16270 100644 --- a/src/librt/regionfix.c +++ b/src/librt/regionfix.c @@ -71,7 +71,7 @@ rt_regionfix(struct rt_i *rtip) fp = fopen(file, "rb"); if (fp == NULL) { - if (rtip->rti_region_fix_file) bu_log("%s: unable to open REGEXP file\n", file); + if (rtip->rti_region_fix_file) bu_log("unable to open REGEXP file: %s\n", file); bu_vls_free(&name); return; }