Error message not showing on preview. (for erd version 0.2.0)
adamist521 opened this issue · 0 comments
adamist521 commented
What's going on
Error from erd v0.2.0
is not shown in preview (screenshot below).
Cause
It is due to that erd
outputs error to stderr instead of stdout which assumed to be the old implementation and that causes error messages not shown in preview of VSCode.
Temporaly Solution (&problem)
As a temporaly solution, changing .stdout
to .stderr
in the following code will output message on preview.
(One thing I have to mention is that changing code would make erd-go v1.4.3
not showing error message so (unless you put both stdout and stderr))
vscode-erd/src/previews/preview.ts
Lines 163 to 171 in 0d1d3c1