Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show timeout duration in error messages #2148

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

konstin
Copy link

@konstin konstin commented Feb 29, 2024

Proof of concept to add the timeout duration to the error message. This helps users understand why the operation failed. Are you interested in such a change? In this case i would polish the code to make it ready to be reviewed and merged.

Before:

💥 my-app failed
  Caused by: Network request failed
  Caused by: error sending request for url (https://httpbin.org/): operation timed out
  Caused by: operation timed out

After:

💥 my-app failed
  Caused by: Network request failed
  Caused by: request or response body error: operation timed out (2s)
  Caused by: operation timed out (2s)

Proof of concept to add the timeout duration to the error message. This helps users understand why the operation failed. Are you interested in such a change? In this case i would polish the code to make it ready to be reviewed and merged.

Before:

```
💥 my-app failed
  Caused by: Network request failed
  Caused by: error sending request for url (https://httpbin.org/): operation timed out
  Caused by: operation timed out
```

After:

```
💥 my-app failed
  Caused by: Network request failed
  Caused by: request or response body error: operation timed out (2s)
  Caused by: operation timed out (2s)
 ```
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