Skip to content
Snippets Groups Projects
Commit 48eb8494 authored by Marco Biasini's avatar Marco Biasini
Browse files

downgrade to warning, avoid duplication

parent 35d7513d
No related branches found
No related tags found
No related merge requests found
...@@ -159,7 +159,6 @@ Date CompoundLib::GetCreationDate(void){ ...@@ -159,7 +159,6 @@ Date CompoundLib::GetCreationDate(void){
} }
assert(SQLITE_DONE==sqlite3_step(stmt)); assert(SQLITE_DONE==sqlite3_step(stmt));
} else { } else {
LOG_ERROR("ERROR: " << sqlite3_errmsg(conn_));
sqlite3_finalize(stmt); sqlite3_finalize(stmt);
return Date(); return Date();
} }
...@@ -168,7 +167,7 @@ Date CompoundLib::GetCreationDate(void){ ...@@ -168,7 +167,7 @@ Date CompoundLib::GetCreationDate(void){
} }
String CompoundLib::GetOSTVersionUsed(){ String CompoundLib::GetOSTVersionUsed() {
String query="SELECT ost_version_used FROM chemlib_info"; String query="SELECT ost_version_used FROM chemlib_info";
sqlite3_stmt* stmt; sqlite3_stmt* stmt;
String version; String version;
...@@ -189,7 +188,7 @@ String CompoundLib::GetOSTVersionUsed(){ ...@@ -189,7 +188,7 @@ String CompoundLib::GetOSTVersionUsed(){
} }
assert(SQLITE_DONE==sqlite3_step(stmt)); assert(SQLITE_DONE==sqlite3_step(stmt));
} else { } else {
LOG_ERROR("ERROR: " << sqlite3_errmsg(conn_) << " - your compound library might be outdated!"); LOG_WARNING("your compound library might be outdated.");
sqlite3_finalize(stmt); sqlite3_finalize(stmt);
return String(); return String();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment