convenience: if a "Go To Packet" didn't succeeded, add the requested packet number to the error message,

svn path=/trunk/; revision=14510
This commit is contained in:
Ulf Lamping 2005-05-31 21:17:54 +00:00
parent 692cd3d6db
commit bd1442f452
1 changed files with 2 additions and 2 deletions

4
file.c
View File

@ -2821,14 +2821,14 @@ cf_goto_frame(capture_file *cf, guint fnumber)
if (fdata == NULL) {
/* we didn't find a packet with that packet number */
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
"There is no packet with that packet number.");
"There is no packet with the packet number %u.", fnumber);
return FALSE; /* we failed to go to that packet */
}
if (!fdata->flags.passed_dfilter) {
/* that packet currently isn't displayed */
/* XXX - add it to the set of displayed packets? */
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
"That packet isn't currently being displayed.");
"The packet number %u isn't currently being displayed.", fnumber);
return FALSE; /* we failed to go to that packet */
}