Generating error messages for failed commands errors out #8974
Labels
beginners
issues that are perfect for beginners
commands
issues related to application commands
good first issue
good first issues for new contributors
Bug Description:
If a command fails to run, and one of the arguments to the handler cannot be stringified, the console shows an error about a failure of JSON.stringify, rather than a failure of the command.
Reproduction
Widget
, which has a.parent
field) as an argument.JSON.stringify
rather than a message about the command that failed.Additional Information
theia/packages/core/src/common/command.ts
Lines 290 to 301 in 47be972
The problem is the invocation of
JSON.stringify
on args that can beany
, including something not stringifiable.master
)The text was updated successfully, but these errors were encountered: