From c81d624d8bdd650b2ff2bdb0d3b840180bd08964 Mon Sep 17 00:00:00 2001 From: "Travis A. Everett" Date: Mon, 4 May 2020 17:43:24 -0500 Subject: fail with term() instead of msg() --- src/sqlite3gen.cpp | 10 +++------- 1 file 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; } -- cgit v0.12