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

Format runtime errors using CLIError #1508

Open
tusharmath opened this issue Mar 19, 2024 · 6 comments · May be fixed by #2147
Open

Format runtime errors using CLIError #1508

tusharmath opened this issue Mar 19, 2024 · 6 comments · May be fixed by #2147

Comments

@tusharmath
Copy link
Contributor

tusharmath commented Mar 19, 2024

Currently the errors aren't formatted using CLIError and look poorly formated on the console. Below is an example of a 404 error.

ERROR error=HTTP status client error (404 Not Found)
ERROR error=IOException: HTTP status client error (404 Not Found)
ERROR err=Error { message: "IOException: HTTP status client error (404 Not Found)", extensions: None }

Expected
Error should look something like below.

ERROR Http Error
Caused by:
  - HTTP status client error (404 Not Found)

NOTE
Error should not be printed 3 times.

@tusharmath
Copy link
Contributor Author

/bounty 50

Copy link

algora-pbc bot commented Mar 19, 2024

💎 $50 bounty • Tailcall Inc.

Steps to solve:

  1. Start working: Comment /attempt #1508 with your implementation plan
  2. Submit work: Create a pull request including /claim #1508 in the PR body to claim the bounty
  3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

🙏 Thank you for contributing to tailcallhq/tailcall!
🧐 Checkout our guidelines before you get started.

Attempt Started (GMT+0) Solution
🔴 @ssddOnTop Mar 19, 2024, 1:46:17 PM WIP
🔴 @neo773 Mar 19, 2024, 1:46:27 PM WIP
🟢 @lazyfuhrer Mar 22, 2024, 1:52:14 PM WIP
🟢 @mehulmathur001 #2014

@ssddOnTop
Copy link
Member

ssddOnTop commented Mar 19, 2024

/attempt 1508

Algora profile Completed bounties Tech Active attempts Options
@ssddOnTop 26 tailcallhq bounties
Rust, Java,
C & more
Cancel attempt

@ssddOnTop
Copy link
Member

@neo773 cancelling my attempt

@neo773
Copy link
Contributor

neo773 commented Mar 19, 2024

This is open to anyone who wants to attempt

@lazyfuhrer
Copy link
Contributor

lazyfuhrer commented Mar 22, 2024

/attempt 1508

Algora profile Completed bounties Tech Active attempts Options
@lazyfuhrer 2 tailcallhq bounties
TypeScript, JavaScript,
Rust & more
Cancel attempt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants