summaryrefslogtreecommitdiff
path: root/context.c
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2026-02-18 15:14:13 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2026-02-18 15:14:13 +0100
commite0de42af0b2c51ed9607a477cbdb556f44bac4f7 (patch)
treebc1832b01354a96d13dd3f8b46d60f904e28889a /context.c
parent3145e2d2f565c5da599dd50e9c70b9e9ff3d5965 (diff)
downloadllmnpc-e0de42af0b2c51ed9607a477cbdb556f44bac4f7.tar.gz
Update to VectorDB
Diffstat (limited to 'context.c')
-rw-r--r--context.c5
1 files changed, 3 insertions, 2 deletions
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;
}