Package: ctrlproxy Version: 2.6.1-1.0skif Severity: normal Tags: patch
When configuring ctrlproxy, I accidentally put a 'network' element outside of a 'networks' element. ctrlproxy gave me a completely useless error message: file main.c: line 237 (readConfig): assertion failed: (0) Aborted This is a terrible error message, because it doesn't tell me what went wrong, where it went wrong, or how to fix it. The following patch should make it more useful: --- main.c.old 2003-12-25 10:34:40.000000000 -0700 +++ main.c 2005-01-19 17:31:54.782641153 -0700 @@ -234,7 +234,8 @@ xmlNode_plugins = cur; } else if(!strcmp(cur->name, "networks")) { xmlNode_networks = cur; - } else g_assert(0); + } else g_error("Unknown node '%s' in configuration file", + cur->name); cur = cur->next; } -- System Information: Debian Release: 3.1 APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: ia64 Kernel: Linux 2.6.9skif Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages ctrlproxy depends on: ii libc6.1 2.3.2.ds1-20 GNU C Library: Shared libraries an ii libgcc1 1:3.4.3-7 GCC support library ii libglib2.0-0 2.6.1-2 The GLib library of C routines ii libpopt0 1.7-5 lib for parsing cmdline parameters ii libssl0.9.7 0.9.7e-3 SSL shared libraries ii libxml2 2.6.11-5 GNOME XML library ii zlib1g 1:1.2.2-4 compression library - runtime -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]