Skip to content

Commit c81d624

Browse files
committed
fail with term() instead of msg()
1 parent 82cb93c commit c81d624

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/sqlite3gen.cpp

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2516,16 +2516,13 @@ static sqlite3* openDbConnection()
25162516
rc = sqlite3_initialize();
25172517
if (rc != SQLITE_OK)
25182518
{
2519-
msg("sqlite3_initialize failed\n");
2520-
return NULL;
2519+
term("sqlite3_initialize failed\n");
25212520
}
25222521

25232522

25242523
if (stat (outputDirectory+"/doxygen_sqlite3.db", &buf) == 0)
25252524
{
2526-
msg("doxygen_sqlite3.db already exists! aborting sqlite3 output generation!\n");
2527-
msg("If you wish to re-generate the database, remove or archive the existing copy first.\n");
2528-
return NULL;
2525+
term("doxygen_sqlite3.db already exists! Rename, remove, or archive it to regenerate. Aborting!\n");
25292526
}
25302527

25312528
rc = sqlite3_open_v2(
@@ -2537,8 +2534,7 @@ static sqlite3* openDbConnection()
25372534
if (rc != SQLITE_OK)
25382535
{
25392536
sqlite3_close(db);
2540-
msg("database open failed: %s\n", "doxygen_sqlite3.db");
2541-
return NULL;
2537+
term("Database open failed: %s\n", "doxygen_sqlite3.db");
25422538
}
25432539
return db;
25442540
}

0 commit comments

Comments
 (0)