/ Check-in [c404fcac]
Login

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

Overview
Comment:Improved error messages in fuzzershell when unable to open the database.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: c404fcace83613a50015f15097b7f28123c221c3
User & Date: drh 2015-05-22 23:50:19
Context
2015-05-23
02:44
Minor documentation improvements. No changes to code. check-in: e446d9ce user: drh tags: trunk
2015-05-22
23:51
Merge bug fixes from trunk. check-in: 519054bb user: drh tags: sessions
23:50
Improved error messages in fuzzershell when unable to open the database. check-in: c404fcac user: drh tags: trunk
23:45
Fix a bug in fuzzershell caused by an uninitialized local variable. check-in: 745deab8 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to tool/fuzzershell.c.

   697    697           }
   698    698         }else{
   699    699           oomCnt = 0;
   700    700         }
   701    701         do{
   702    702           if( zDbName ){
   703    703             rc = sqlite3_open_v2(zDbName, &db, SQLITE_OPEN_READWRITE, 0);
          704  +          if( rc!=SQLITE_OK ){
          705  +            abendError("Cannot open database file %s", zDbName);
          706  +          }
   704    707           }else{
   705    708             rc = sqlite3_open_v2(
   706    709               "main.db", &db,
   707    710               SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE | SQLITE_OPEN_MEMORY,
   708    711               0);
   709         -        }
   710         -        if( rc!=SQLITE_OK ){
   711         -          abendError("Unable to open the in-memory database");
          712  +          if( rc!=SQLITE_OK ){
          713  +            abendError("Unable to open the in-memory database");
          714  +          }
   712    715           }
   713    716           if( pLook ){
   714    717             rc = sqlite3_db_config(db, SQLITE_DBCONFIG_LOOKASIDE,pLook,szLook,nLook);
   715    718             if( rc!=SQLITE_OK ) abendError("lookaside configuration filed: %d", rc);
   716    719           }
   717    720       #ifndef SQLITE_OMIT_TRACE
   718    721           sqlite3_trace(db, verboseFlag ? traceCallback : traceNoop, 0);