diff options
author | lego <lego@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-08-25 15:48:28 +0000 |
---|---|---|
committer | lego <lego@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-08-25 15:48:28 +0000 |
commit | ba9e27cac6048ed746668fd9014e092ccee24973 (patch) | |
tree | ed7460f45d0e0ac53a4b77f3caff3ddec0458705 /tap-stats_tree.c | |
parent | 8a3a8d1b43c90e22692273c47d8d585d37dcefef (diff) |
http://bugs.ethereal.com/bugzilla/show_bug.cgi?id=377
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15530 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'tap-stats_tree.c')
-rw-r--r-- | tap-stats_tree.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tap-stats_tree.c b/tap-stats_tree.c index 5c40acd367..c7996fd80d 100644 --- a/tap-stats_tree.c +++ b/tap-stats_tree.c @@ -32,6 +32,7 @@ #include <glib.h> #include <epan/stats_tree_priv.h> #include <epan/stat_cmd_args.h> +#include <epan/report_err.h> /* actually unused */ struct _st_node_pres { @@ -84,13 +85,15 @@ static void init_stats_tree(const char *optarg) { st->filter=NULL; } } else { - g_error("no such stats_tree (%s) found in stats_tree registry",abbr); + report_failure("no such stats_tree (%s) found in stats_tree registry",abbr); + return; } g_free(abbr); } else { - g_error("could not obtain stats_tree abbr (%s) from optarg '%s'",abbr,optarg); + report_failure("could not obtain stats_tree abbr (%s) from optarg '%s'",abbr,optarg); + return; } error_string = register_tap_listener( st->cfg->tapname, @@ -101,7 +104,8 @@ static void init_stats_tree(const char *optarg) { draw_stats_tree); if (error_string) { - g_error("stats_tree for: %s failed to attach to the tap: %s",cfg->name,error_string->str); + report_failure("stats_tree for: %s failed to attach to the tap: %s",cfg->name,error_string->str); + return; } if (cfg->init) cfg->init(st); |