]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Always display a message when exiting on a failure.
authorFrederic Marchal <fmarchal@users.sourceforge.net>
Sun, 4 Oct 2015 14:11:05 +0000 (16:11 +0200)
committerFrederic Marchal <fmarchal@users.sourceforge.net>
Sun, 4 Oct 2015 14:11:05 +0000 (16:11 +0200)
btree_cache.c
filelist.c
ip2name.c

index 18d2007edc39b5c936d2b04e73ec71ebaff0f3f6..4bc109161c1c1ce8002a8557784dd13d487538a7 100644 (file)
@@ -258,6 +258,7 @@ void balance_node(struct bt *node)
                        rotate_left(node);
                        break;
                default:
+                       debuga(__FILE__,__LINE__,_("Failed to balance the b-tree cache"));
                        exit(EXIT_FAILURE);
                        break;
 
index c36b96d3a4db6dae51695b32a05286858b7d15ec..d4395645d4bdbf6db7564b6b3d6d6b1204a5befc 100644 (file)
@@ -456,6 +456,9 @@ const char *FileListIter_Next(struct _FileListIterator *FIter)
                        case GLOB_NOMATCH:
                                debuga(__FILE__,__LINE__,_("No files matching \"%s\"\n"),Path);
                                break;
+                       default:
+                               debuga(__FILE__,__LINE__,_("Failed to glob file pattern \"%s\" with unspecified error code %d"),Path,ErrCode);
+                               break;
                        }
                        exit(EXIT_FAILURE);
                }
index d30f3f787d73c798a3a87b76d7f0bcbeaedda227..75a949cd2a86d2a63474916aa0e034ade9daed7f 100644 (file)
--- a/ip2name.c
+++ b/ip2name.c
@@ -186,7 +186,7 @@ void ip2name_forcedns(void)
                }
        }
        if (!DnsModule) {
-               if (debugz>=LogLevel_Process) debuga(__FILE__,__LINE__,_("No known module to resolve an IP address using the DNS\n"));
+               debuga(__FILE__,__LINE__,_("No known module to resolve an IP address using the DNS\n"));
                exit(EXIT_FAILURE);
        }