summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTravis A. Everett <travis.a.everett@gmail.com>2020-05-04 22:43:24 (GMT)
committerTravis A. Everett <travis.a.everett@gmail.com>2020-05-04 22:43:24 (GMT)
commitc81d624d8bdd650b2ff2bdb0d3b840180bd08964 (patch)
treecc1c442091d00faa54921b0585e620c1ab87f57e
parent82cb93c033c83b5a184cd450d86b0f712e0870b3 (diff)
downloadDoxygen-c81d624d8bdd650b2ff2bdb0d3b840180bd08964.zip
Doxygen-c81d624d8bdd650b2ff2bdb0d3b840180bd08964.tar.gz
Doxygen-c81d624d8bdd650b2ff2bdb0d3b840180bd08964.tar.bz2
fail with term() instead of msg()
-rw-r--r--src/sqlite3gen.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/sqlite3gen.cpp b/src/sqlite3gen.cpp
index eb944e6..275d989 100644
--- a/src/sqlite3gen.cpp
+++ b/src/sqlite3gen.cpp
@@ -2516,16 +2516,13 @@ static sqlite3* openDbConnection()
rc = sqlite3_initialize();
if (rc != SQLITE_OK)
{
- msg("sqlite3_initialize failed\n");
- return NULL;
+ term("sqlite3_initialize failed\n");
}
if (stat (outputDirectory+"/doxygen_sqlite3.db", &buf) == 0)
{
- msg("doxygen_sqlite3.db already exists! aborting sqlite3 output generation!\n");
- msg("If you wish to re-generate the database, remove or archive the existing copy first.\n");
- return NULL;
+ term("doxygen_sqlite3.db already exists! Rename, remove, or archive it to regenerate. Aborting!\n");
}
rc = sqlite3_open_v2(
@@ -2537,8 +2534,7 @@ static sqlite3* openDbConnection()
if (rc != SQLITE_OK)
{
sqlite3_close(db);
- msg("database open failed: %s\n", "doxygen_sqlite3.db");
- return NULL;
+ term("Database open failed: %s\n", "doxygen_sqlite3.db");
}
return db;
}