Skip to content

fix(tauri): improve error handling and response mapping#198

Merged
goosewobbler merged 2 commits intomainfrom
fix/tauri-error-handling
Mar 12, 2026
Merged

fix(tauri): improve error handling and response mapping#198
goosewobbler merged 2 commits intomainfrom
fix/tauri-error-handling

Conversation

@goosewobbler
Copy link
Copy Markdown
Contributor

No description provided.

- Enhanced the WebDriver server's error handling by adding logging for runtime creation and binding failures, ensuring better diagnostics.
- Introduced a mapping for known JavaScript error messages to their corresponding W3C error codes, specifically handling "stale element reference."
- Added unit tests to verify the correct mapping of JavaScript errors and the behavior of the new error response methods.
- Improved error handling in the PortManager class to release the first port if the second allocation fails, ensuring resource management.
- Updated logging messages in TauriWorkerService to provide clearer error context during plugin initialization and command overriding.
- Adjusted mock implementation in tests to validate the new error handling behavior in port allocation.
greptile-apps[bot]

This comment was marked as off-topic.

@goosewobbler goosewobbler merged commit 367dd0a into main Mar 12, 2026
92 checks passed
@goosewobbler goosewobbler deleted the fix/tauri-error-handling branch March 12, 2026 19:28
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.

1 participant