diff options
| author | Asbjørn Sloth Tønnesen <ast@2e8.dk> | 2026-01-12 19:04:08 +0000 |
|---|---|---|
| committer | Asbjørn Sloth Tønnesen <ast@2e8.dk> | 2026-01-12 19:06:14 +0000 |
| commit | 916ad16dfa5e61f79b8c16a6e5bb6a288f3f1015 (patch) | |
| tree | 1d9d89b5e8cb2d330c03cfdec07e81fb64fa9e75 /src/main.c | |
| parent | a8c1c1f01c0443e5ed884316da618634c7aebe93 (diff) | |
| download | qlprint-916ad16dfa5e61f79b8c16a6e5bb6a288f3f1015.tar.gz qlprint-916ad16dfa5e61f79b8c16a6e5bb6a288f3f1015.tar.xz qlprint-916ad16dfa5e61f79b8c16a6e5bb6a288f3f1015.zip | |
Improve error code formattingfixes
For text output, allocate exactly the right buffer size.
For JSON output, return error codes as an array, not just a
concatinated text string.
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |
