devalue icon indicating copy to clipboard operation
devalue copied to clipboard

fix: throw error if non-POJO is an error

Open naquiroz opened this issue 3 years ago • 5 comments

This pull request gives a better UX to a developer using nuxt. Right now, if an error is thrown and that cannot be stringified, the only thing shown is the error name —for example: TypeError—. With these changes, if the thing that is being stringified is an error, instead of just showing the name, the error is re-thrown, with an extended error message.

naquiroz avatar Feb 18 '22 21:02 naquiroz

Hey, is there any chance we can merge this pull request? 😄

naquiroz avatar Apr 18 '22 13:04 naquiroz

+1, we just ran into this issue in Astro as well moving from serialize-javascript, which supports this behavior by default.

FredKSchott avatar May 05 '22 18:05 FredKSchott

+1

wobsoriano avatar Oct 16 '22 17:10 wobsoriano

cc @pi0

TheAlexLichter avatar Oct 16 '22 17:10 TheAlexLichter

Can this be merged? It's been almost a year now.

naquiroz avatar Feb 06 '23 14:02 naquiroz