tailcall icon indicating copy to clipboard operation
tailcall copied to clipboard

Format runtime errors using CLIError

Open tusharmath opened this issue 1 year ago • 6 comments

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 avatar Mar 19 '24 13:03 tusharmath

/bounty 50

tusharmath avatar Mar 19 '24 13:03 tusharmath

~~## 💎 $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.~~ ~~💵 More about our bounty program.~~

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

algora-pbc[bot] avatar Mar 19 '24 13:03 algora-pbc[bot]

/attempt 1508

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

ssddOnTop avatar Mar 19 '24 13:03 ssddOnTop

@neo773 cancelling my attempt

ssddOnTop avatar Mar 19 '24 13:03 ssddOnTop

This is open to anyone who wants to attempt

neo773 avatar Mar 19 '24 14:03 neo773

/attempt 1508

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

lazyfuhrer avatar Mar 22 '24 13:03 lazyfuhrer

Action required: Issue inactive for 30 days. Status update or closure in 7 days.

github-actions[bot] avatar Jul 28 '24 09:07 github-actions[bot]

Issue closed after 7 days of inactivity.

github-actions[bot] avatar Aug 04 '24 10:08 github-actions[bot]