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:
Guy Harris 2020-10-14 00:01:49 -07:00
parent 6e6233521a
commit 793a57fae4
1 changed files with 2 additions and 2 deletions

View File

@ -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;