Skip to content

Comments

feat(web): expose granular RDCleanPath error details#1117

Merged
Benoît Cortier (CBenoit) merged 1 commit intoDevolutions:masterfrom
gabrielbauman:gbauman/rdcleanpath-error-details
Feb 22, 2026
Merged

feat(web): expose granular RDCleanPath error details#1117
Benoît Cortier (CBenoit) merged 1 commit intoDevolutions:masterfrom
gabrielbauman:gbauman/rdcleanpath-error-details

Conversation

@gabrielbauman
Copy link
Contributor

@gabrielbauman Gabriel Bauman (gabrielbauman) commented Feb 20, 2026

Add RDCleanPathDetails struct to provide detailed error information for RDCleanPath errors, including HTTP status codes, WSA error codes, and TLS alert codes.

Allows the web client to distinguish between different types of network errors (say, WSAEACCES/10013) instead of showing a generic RDCleanpath error message.

Changes:

  • Add RDCleanPathDetails struct with wasm-bindgen support
  • Extend IronError trait with rdcleanpath_details() method
  • Extract and attach error details in session RDCleanPath handling
  • Export RDCleanPathDetails to TypeScript interface

The web client can now inspect error.rdcleanpathDetails() to get:

  • httpStatusCode: HTTP errors (403 Forbidden, 404 Not Found, etc.)
  • wsaErrorCode: Windows Socket errors (10013 permission denied, etc.)
  • tlsAlertCode: TLS handshake errors (40 handshake failure, etc.)

I got tired of parsing stack traces in JS ;)

Add RDCleanPathDetails struct to provide detailed error information
for RDCleanPath errors, including HTTP status codes, WSA error codes,
and TLS alert codes.

This addresses ZTIA-1318 by allowing the web client to distinguish
between different types of network errors (e.g., deleted VNETs showing
as WSAEACCES/10013) instead of showing a generic error message.

Changes:
- Add RDCleanPathDetails struct with wasm-bindgen support
- Extend IronError trait with rdcleanpath_details() method
- Extract and attach error details in session RDCleanPath handling
- Export RDCleanPathDetails to TypeScript interface

The web client can now inspect error.rdcleanpathDetails() to get:
- httpStatusCode: HTTP errors (403 Forbidden, 404 Not Found, etc.)
- wsaErrorCode: Windows Socket errors (10013 permission denied, etc.)
- tlsAlertCode: TLS handshake errors (40 handshake failure, etc.)
Copy link
Member

@CBenoit Benoît Cortier (CBenoit) left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice addition. LGTM! Thank you!

@CBenoit Benoît Cortier (CBenoit) merged commit 2911124 into Devolutions:master Feb 22, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants