/ Check-in [8e0ced1a]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Simplified error message on the showdb utility.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:8e0ced1af78d8c25a06423a8e7e337ac845155cc
User & Date: drh 2013-03-05 01:46:26
Context
2013-03-05
11:27
Fix a bug in the recent incremental-vacuum related changes. check-in: 717863fc user: dan tags: trunk
01:46
Simplified error message on the showdb utility. check-in: 8e0ced1a user: drh tags: trunk
2013-03-04
17:41
Omit a test that uses the progress handler callback from view.test if OMIT_PROGRESS_HANDLER is defined. check-in: f40552ad user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Show Whitespace Changes Patch

Changes to tool/showdb.c.

   467    467     va_list ap;
   468    468     char *zMsg;
   469    469   
   470    470     va_start(ap, zFormat);
   471    471     zMsg = sqlite3_vmprintf(zFormat, ap);
   472    472     va_end(ap);
   473    473     if( pgno<=0 || pgno>mxPage ){
   474         -    printf("ERROR: page %d out of bounds.  Range=1..%d.  Msg: %s\n",
          474  +    printf("ERROR: page %d out of range 1..%d: %s\n",
   475    475               pgno, mxPage, zMsg);
   476    476       sqlite3_free(zMsg);
   477    477       return;
   478    478     }
   479    479     if( zPageUse[pgno]!=0 ){
   480    480       printf("ERROR: page %d used multiple times:\n", pgno);
   481    481       printf("ERROR:    previous: %s\n", zPageUse[pgno]);