send icon indicating copy to clipboard operation
send copied to clipboard

feat: display which path failed to decode

Open Jeff-Tian opened this issue 3 years ago • 1 comments

Why

Hello, when I started a koa server and sent a template HTML to the client, the server showed an error "failed to decode BadRequestError: failed to decode" which is not clear enough to let me spot the issue instantly.

After more investigation, I found it's caused by the URL specified in the HTML template being malformed to the koa server.

So I think it might help to let the developer know the root cause immediately by enhancing the error message to display the path that failed to decode.

Screenshots

image image

Thanks for your time to review!

Checklist

  • [x] I have ensured my pull request is not behind the main or master branch of the original repository.
  • [x] I have rebased all commits where necessary so that reviewing this pull request can be done without having to merge it first.
  • [x] I have written a commit message that passes commitlint linting.
  • [x] I have ensured that my code changes pass linting tests.
  • [x] I have ensured that my code changes pass unit tests.
  • [x] I have described my pull request and the reasons for code changes along with context if necessary.

Jeff-Tian avatar Jul 22 '22 10:07 Jeff-Tian

ping

Jeff-Tian avatar Oct 18 '22 04:10 Jeff-Tian