Skip to content

Enhance print_socket error handling and update Dbus error return for frontend error display#59

Merged
tillkamppeter merged 14 commits intoOpenPrinting:masterfrom
Souptik-De:master
Mar 19, 2026
Merged

Enhance print_socket error handling and update Dbus error return for frontend error display#59
tillkamppeter merged 14 commits intoOpenPrinting:masterfrom
Souptik-De:master

Conversation

@Souptik-De
Copy link
Copy Markdown

pass CUPS error reason through D-Bus for frontend to display on job failure

Add error_msg output parameter to print_socket() so that the exact
CUPS error string from cupsLastErrorString() is captured on failure
and passed back to the caller. on_handle_print_socket() then includes
this string in the D-Bus error reply instead of a generic message,
allowing the frontend to display the actual reason for the failure
to the user (e.g. "job not created: Unauthorized").

@tillkamppeter tillkamppeter merged commit 4dc22b8 into OpenPrinting:master Mar 19, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants