quicktype icon indicating copy to clipboard operation
quicktype copied to clipboard

Fix missing/broken error messages

Open uuf6429 opened this issue 8 months ago • 2 comments

Description

Error messages were showing up like so:

Error: Internal error: .

This is because of a problem with handling strings in the custom interpolation function.

How Has This Been Tested?

Tested it manually, that after the change the original error showed up correctly.


PS: This is a rather critical bug IMO - it's decreasing the quality/trustworthiness of the project.

uuf6429 avatar Jun 19 '25 07:06 uuf6429

@uuf6429 Can you give an example of a reproduction and the resulting error messages before and after ?

inferrinizzard avatar Jun 19 '25 22:06 inferrinizzard

@inferrinizzard simply call panic("test"); from anywhere, it will show the following in the console: Error: Internal error: . With my fix it would be Error: Internal error: test.

PS: I'm guessing this stuff is not tested, otherwise the original problem would have been long caught. I also don't know how/where to test it, the project is pretty big and the test code somewhat messy.

uuf6429 avatar Jun 20 '25 12:06 uuf6429