mirror of
https://github.com/abraunegg/onedrive
synced 2024-06-08 08:52:15 +02:00
Update logging for sql statement execution
* Missed two other entries in sql statement execution
This commit is contained in:
parent
0a848a04fa
commit
171c2d3712
|
@ -151,7 +151,7 @@ struct Statement
|
|||
int rc = sqlite3_step(pStmt);
|
||||
if (rc == SQLITE_BUSY) {
|
||||
// Database is locked by another onedrive process
|
||||
writeln("The database is currently locked by another process - cannot sync");
|
||||
log.error("The database is currently locked by another process - cannot sync");
|
||||
return;
|
||||
}
|
||||
if (rc == SQLITE_DONE) {
|
||||
|
@ -166,7 +166,7 @@ struct Statement
|
|||
}
|
||||
} else {
|
||||
string errorMessage = ifromStringz(sqlite3_errmsg(sqlite3_db_handle(pStmt)));
|
||||
writeln("\nA database statement execution error occurred: "~ errorMessage ~ "\n");
|
||||
log.error("\nA database statement execution error occurred: "~ errorMessage ~ "\n");
|
||||
exit(-1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue