- try {
- (void) new Xapian::WritableDatabase("./nonexistant", Xapian::DB_OPEN);
- } catch (const Xapian::Error &error) {
- printf("caught %s\n", error.get_msg().c_str());
- return 0;
- }
+ try {
+ (void) new Xapian::WritableDatabase (argv[2], Xapian::DB_OPEN);
+ } catch (const Xapian::Error &error) {
+ printf("caught %s\n", error.get_msg().c_str());
+ return 0;
+ }