From 916ad16dfa5e61f79b8c16a6e5bb6a288f3f1015 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asbj=C3=B8rn=20Sloth=20T=C3=B8nnesen?= Date: Mon, 12 Jan 2026 19:04:08 +0000 Subject: Improve error code formatting For text output, allocate exactly the right buffer size. For JSON output, return error codes as an array, not just a concatinated text string. --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index a66c6a6..4ab43f7 100644 --- a/src/main.c +++ b/src/main.c @@ -285,7 +285,7 @@ for(int i = 0; i < img->height; ++i) if (status.err_info_1 || status.err_info_2) bail_out(&json_ctx, "Printer reported error(s): %s", - ql_decode_errors(&status)); + ql_decode_errors_human(&status)); } while (status.status_type != QL_STATUS_TYPE_PRINTING_DONE); alarm(0); -- cgit v1.2.1