diff options
author | Guy Harris <guy@alum.mit.edu> | 2010-05-26 02:32:19 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2010-05-26 02:32:19 +0000 |
commit | d0ac88186d39e6ae2650843acb40cbbed239b170 (patch) | |
tree | 5ef81348bbe1be9f751202477598a4decd3dbba1 /capture.c | |
parent | 347e7a0052fe0610ec105de34efe935c727fd3ce (diff) |
If dumpcap exits abnormally, report the error.
svn path=/trunk/; revision=32964
Diffstat (limited to 'capture.c')
-rw-r--r-- | capture.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -510,7 +510,7 @@ capture_input_cfilter_error_message(capture_options *capture_opts, char *error_m /* capture child closed its side of the pipe, do the required cleanup */ void -capture_input_closed(capture_options *capture_opts) +capture_input_closed(capture_options *capture_opts, gchar *msg) { int err; int packet_count_save; @@ -518,6 +518,9 @@ capture_input_closed(capture_options *capture_opts) g_log(LOG_DOMAIN_CAPTURE, G_LOG_LEVEL_MESSAGE, "Capture stopped!"); g_assert(capture_opts->state == CAPTURE_PREPARING || capture_opts->state == CAPTURE_RUNNING); + if (msg != NULL) + simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", msg); + /* if we didn't start the capture, do a fake start. */ /* (happens if we got an error message - we won't get a filename then). */ if(capture_opts->state == CAPTURE_PREPARING) { |