How to contribute error messages #487
-
I think I'm going to be packaging up a lot of stuff today and the package.yml files are going to be in various degrees of chaos. I think this is an excellent opportunity to improve the error handling. But I don't know where to start. I've had a little bit of experience with TypeScript, but only for the web and this looks unlike any other codebase I've worked on. That said, I do want to learn it and figure it out. Right now, I'd like to add a descriptive error message for this error. It's happening because the "distributable: url:" in the package.yml is 404 because the version actually needs to be version.raw.
The error message I'm thinking could be something like, "Could not download distributable, do you need to use version.raw?". I just don't know where to put it. I know useDownload.ts line 118 is throwing the error:
How would I catch this error and print a really helpful error message? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Good initiative, but I just tried to answer and realized this is a shit tonne of work. Honestly your efforts would be more fruitful packaging. How about I promise to make the errors better soonish instead? And to be fair the error message does contain all the info you need to debug currently, it's just noisy. |
Beta Was this translation helpful? Give feedback.
Good initiative, but I just tried to answer and realized this is a shit tonne of work. Honestly your efforts would be more fruitful packaging. How about I promise to make the errors better soonish instead?
And to be fair the error message does contain all the info you need to debug currently, it's just noisy.