diff options
Diffstat (limited to 'ui/capture.c')
-rw-r--r-- | ui/capture.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ui/capture.c b/ui/capture.c index d8bd0723b8..22ebc96984 100644 --- a/ui/capture.c +++ b/ui/capture.c @@ -370,6 +370,20 @@ cf_open_error_message(int err, gchar *err_info, gboolean for_writing, errmsg = errmsg_errno; break; + case WTAP_ERR_INTERNAL: + if (for_writing) { + g_snprintf(errmsg_errno, sizeof(errmsg_errno), + "An internal error occurred creating the file \"%%s\".\n" + "(%s)", err_info != NULL ? err_info : "no information supplied"); + } else { + g_snprintf(errmsg_errno, sizeof(errmsg_errno), + "An internal error occurred opening the file \"%%s\".\n" + "(%s)", err_info != NULL ? err_info : "no information supplied"); + } + g_free(err_info); + errmsg = errmsg_errno; + break; + case WTAP_ERR_DECOMPRESSION_NOT_SUPPORTED: g_snprintf(errmsg_errno, sizeof(errmsg_errno), "We don't support the form of compression used by the compressed file \"%%s\".\n" |