diff --git a/src/backend-sqlite3.c b/src/backend-sqlite3.c index a2ca2c6..11695e0 100644 --- a/src/backend-sqlite3.c +++ b/src/backend-sqlite3.c @@ -146,8 +146,8 @@ int generateSQLite_files(struct configTag* ct, sqlite3 *db, int arch) { } sqlite3_bind_text(stmt, 1, fileUser->name, -1, SQLITE_STATIC); if (sqlite3_step(stmt) != SQLITE_DONE) { - fprintf(stderr, "ERROR: sqlite3_step: %s (%s)\n", sqlite3_query, sqlite3_errmsg(db)); - return 3; + fprintf(stderr, "WARNING: SQLite: (%s %s) %s; ignoring\n", sqlite3_query, + fileUser->name, sqlite3_errmsg(db)); } sqlite3_finalize(stmt); fileUser = fileUser->next; @@ -157,13 +157,13 @@ int generateSQLite_files(struct configTag* ct, sqlite3 *db, int arch) { snprintf(sqlite3_query, PATH_MAX, "INSERT INTO filegroups VALUES(%ld,?);", fileGroup->id); if (sqlite3_prepare_v2(db, sqlite3_query, -1, &stmt, NULL)) { - fprintf(stderr, "ERROR: sqlite3_prepare_v2: %s (%s)\n", sqlite3_errmsg(db), sqlite3_query); - return 1; + fprintf(stderr, "ERROR: sqlite3_prepare_v2: %s (%s)\n", sqlite3_errmsg(db), sqlite3_query); + return 1; } sqlite3_bind_text(stmt, 1, fileGroup->name, -1, SQLITE_STATIC); if (sqlite3_step(stmt) != SQLITE_DONE) { - fprintf(stderr, "ERROR: sqlite3_step: %s (%s)\n", sqlite3_query, sqlite3_errmsg(db)); - return 3; + fprintf(stderr, "WARNING: SQLite: (%s %s) %s; ignoring\n", sqlite3_query, + fileGroup->name, sqlite3_errmsg(db)); } sqlite3_finalize(stmt); fileGroup = fileGroup->next; @@ -241,7 +241,7 @@ int generateSQLite_provided(struct configTag* ct, sqlite3 *db, int arch) { } sqlite3_bind_text(stmt, 1, provided->name, -1, SQLITE_STATIC); if (sqlite3_step(stmt) != SQLITE_DONE) { - fprintf(stderr, "ERROR: SQLite: (%s %s) %s; ignoring\n", sqlite3_query, + fprintf(stderr, "WARNING: SQLite: (%s %s) %s; ignoring\n", sqlite3_query, provided->name, sqlite3_errmsg(db)); } sqlite3_finalize(stmt);