diff options
author | Luis Ontanon <luis.ontanon@gmail.com> | 2005-08-25 15:48:28 +0000 |
---|---|---|
committer | Luis Ontanon <luis.ontanon@gmail.com> | 2005-08-25 15:48:28 +0000 |
commit | f1ba6f515f9fe9dfee44177666a5048f1e4602f4 (patch) | |
tree | ed7460f45d0e0ac53a4b77f3caff3ddec0458705 /tap-stats_tree.c | |
parent | 1b8f8ffcb35abeda1e2f62d12651217a6589249f (diff) |
http://bugs.ethereal.com/bugzilla/show_bug.cgi?id=377
svn path=/trunk/; revision=15530
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); |