From e0de42af0b2c51ed9607a477cbdb556f44bac4f7 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Wed, 18 Feb 2026 15:14:13 +0100 Subject: Update to VectorDB --- context.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'context.c') diff --git a/context.c b/context.c index 633b4dc..e7aa0cf 100644 --- a/context.c +++ b/context.c @@ -155,8 +155,9 @@ int main(int argc, char **argv) { vdb_add_document(&db, line); } - if (vdb_save(&db, out_file) > 0) { - log_message(stderr, LOG_ERROR, "Something went wrong saving file %s", out_file); + VectorDBErrorCode vdb_rc = vdb_save(&db, out_file); + if (vdb_rc != VDB_SUCCESS) { + log_message(stderr, LOG_ERROR, "Something went wrong saving file %s: %s", out_file, vdb_error(vdb_rc)); fclose(context_fp); return 1; } -- cgit v1.2.3