From bd1442f452e3b24434df878713fd075bd9044203 Mon Sep 17 00:00:00 2001 From: Ulf Lamping Date: Tue, 31 May 2005 21:17:54 +0000 Subject: convenience: if a "Go To Packet" didn't succeeded, add the requested packet number to the error message, svn path=/trunk/; revision=14510 --- file.c | 4 ++-- 1 file 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 */ } -- cgit v1.2.1