Give more detail for WTAP_ERR_INTERNAL when writing.
Report the file from which the record to be written came and the record number within that file.
This commit is contained in:
parent
6e6233521a
commit
793a57fae4
|
@ -398,8 +398,8 @@ cfile_write_failure_message(const char *progname, const char *in_filename,
|
|||
break;
|
||||
|
||||
case WTAP_ERR_INTERNAL:
|
||||
cmdarg_err("An internal error occurred while writing the %s.\n(%s)",
|
||||
out_file_string,
|
||||
cmdarg_err("An internal error occurred while writing record%s to the %s.\n(%s)",
|
||||
in_frame_string, out_file_string,
|
||||
err_info != NULL ? err_info : "no information supplied");
|
||||
g_free(err_info);
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue