message: Fix a bug in the sqlite3_api_wrapper that resulted in not correctly reporting why a database could not be opened
diff: @@ -84,6 +84,7 @@ int sqlite3_open_v2(const char *filename, /* Database filename (UTF-8) */
  if (zVfs) { /* unsupported so if set we complain */
  return SQLITE_ERROR;
  }
  + int rc = SQLITE_OK;
  sqlite3 *pDb = nullptr;
  try {
  pDb = new sqlite3();
  @@ -99,10 +100,10 @@ int sqlite3_open_v2(const char *filename, /* Database filename (UTF-8) */
  pDb->last_error = ex.what();
  pDb->errCode = SQLITE_ERROR;
  }
  - return SQLITE_ERROR;
  + rc = SQLITE_ERROR;
  }
  *ppDb = pDb;
  - return SQLITE_OK;
  + return rc;
  }
  int sqlite3_close(sqlite3 *db) {
  