Commit 67f8fb3b26d5ce5a82fb9ef8839997502561f040

Thomas de Grivel 2024-08-01T13:57:00

inspect buf on facts_load error

diff --git a/libkc3/facts.c b/libkc3/facts.c
index 66a2255..19ef9b8 100644
--- a/libkc3/facts.c
+++ b/libkc3/facts.c
@@ -341,6 +341,7 @@ sw facts_load (s_facts *facts, s_buf *buf, const s_str *path)
       err_inspect_sw_decimal(&buf->line);
       err_write_1(": ");
       err_puts(path->ptr.pchar);
+      err_inspect_buf(buf);
       assert(! "facts_load: invalid fact");
       goto ko;
     }
@@ -351,6 +352,7 @@ sw facts_load (s_facts *facts, s_buf *buf, const s_str *path)
       err_inspect_sw_decimal(&buf->line);
       err_write_1(": ");
       err_puts(path->ptr.pchar);
+      err_inspect_buf(buf);
       assert(! "facts_load: missing newline");
       goto ko;
     }
@@ -361,6 +363,7 @@ sw facts_load (s_facts *facts, s_buf *buf, const s_str *path)
       err_inspect_sw_decimal(&buf->line);
       err_write_1(": ");
       err_puts(path->ptr.pchar);
+      err_inspect_buf(buf);
       assert(! "facts_load: invalid fact");
       goto ko;
     }