diff options
authorUlf Lamping <ulf.lamping@web.de>2005-05-31 21:17:54 +0000
committerUlf Lamping <ulf.lamping@web.de>2005-05-31 21:17:54 +0000
commitbd1442f452e3b24434df878713fd075bd9044203 (patch)
parent692cd3d6dbff609ddc1833a35cd597d7929afbee (diff)
convenience: if a "Go To Packet" didn't succeeded, add the requested packet number to the error message,
svn path=/trunk/; revision=14510
1 files changed, 2 insertions, 2 deletions
diff --git a/file.c b/file.c
index 95b276d69b..bb1a963a4b 100644
--- a/file.c
+++ b/file.c
@@ -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 */