diff options
author | lroland <lroland@f5534014-38df-0310-8fa8-9805f1628bb7> | 2006-02-11 03:50:25 +0000 |
---|---|---|
committer | lroland <lroland@f5534014-38df-0310-8fa8-9805f1628bb7> | 2006-02-11 03:50:25 +0000 |
commit | 7d42da712fda440c909724a3a465d7b43c34f19a (patch) | |
tree | 7308409bc7c8c42f1a16464212308f31014ca07f /epan | |
parent | 10abe6f9a51e4769fc9ee20bebefca4f6cc6f7f9 (diff) |
Display g_error messages in the console window unconditionally, if preferences aren't loaded yet.
This way we ensure that errors are displayed during protocol registration.
Use g_error instead of g_warning, if not allowed characters are used in display filter names for protocols. Extend the error message in this case.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17248 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan')
-rw-r--r-- | epan/proto.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/epan/proto.c b/epan/proto.c index 5b7ce02fc4..f3411740b5 100644 --- a/epan/proto.c +++ b/epan/proto.c @@ -3264,7 +3264,9 @@ proto_register_protocol(const char *name, const char *short_name, const char *fi } } if (found_invalid) { - g_warning("Protocol filter name \"%s\" has one or more invalid characters.", filter_name); + g_error("Protocol filter name \"%s\" has one or more invalid characters." + " Allowed are lower characters, digits, '-', '_' and '.'." + " This might be caused by an inappropriate plugin or a development error.", filter_name); } key = g_malloc (sizeof(gint)); *key = g_str_hash(filter_name); |