aboutsummaryrefslogtreecommitdiffstats
path: root/tshark.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-04-20 10:14:50 -0700
committerGuy Harris <guy@alum.mit.edu>2017-04-20 17:15:22 +0000
commitd09ef614598cf6b714059f39191f09af5701bc93 (patch)
tree6bb48a24b8fac1968de5f733dd684be795fc910e /tshark.c
parent46f0c351a902284923a0d16bc394ceb91ebc8453 (diff)
Make the command-line and alert-box failure messages more similar.
Change-Id: I94af221a0ce8b6b3ff8e0e1b94d5379351ac0962 Reviewed-on: https://code.wireshark.org/review/21251 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/tshark.c b/tshark.c
index 960ab68577..b25f80c03b 100644
--- a/tshark.c
+++ b/tshark.c
@@ -3160,8 +3160,9 @@ load_cap_file(capture_file *cf, char *save_file, int out_file_type,
/* Report the error.
XXX - framenum is not necessarily the frame number in
the input file if there was a read filter. */
- cfile_write_failure_message(cf->filename, save_file, err,
- err_info, framenum, out_file_type);
+ cfile_write_failure_message("TShark", cf->filename, save_file,
+ err, err_info, framenum,
+ out_file_type);
wtap_dump_close(pdh, &err);
wtap_block_array_free(shb_hdrs);
wtap_block_array_free(nrb_hdrs);
@@ -3239,8 +3240,8 @@ load_cap_file(capture_file *cf, char *save_file, int out_file_type,
if (!wtap_dump(pdh, wtap_phdr(cf->wth), wtap_buf_ptr(cf->wth), &err, &err_info)) {
/* Error writing to a capture file */
tshark_debug("tshark: error writing to a capture file (%d)", err);
- cfile_write_failure_message(cf->filename, save_file, err, err_info,
- framenum, out_file_type);
+ cfile_write_failure_message("TShark", cf->filename, save_file,
+ err, err_info, framenum, out_file_type);
wtap_dump_close(pdh, &err);
wtap_block_array_free(shb_hdrs);
wtap_block_array_free(nrb_hdrs);