SQLite
Check-in [8e0ced1af7]
Not logged in
Overview
SHA1 Hash:8e0ced1af78d8c25a06423a8e7e337ac845155cc
Date: 2013-03-05 01:46:26
User: drh
Comment:Simplified error message on the showdb utility.
Tags And Properties
Changes
hide diffs unified diffs patch

Changes to tool/showdb.c

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