Skip to content

Add console log to the catch block#2

Open
waldyrious wants to merge 1 commit into
drcallaway:masterfrom
waldyrious:patch-1
Open

Add console log to the catch block#2
waldyrious wants to merge 1 commit into
drcallaway:masterfrom
waldyrious:patch-1

Conversation

@waldyrious

Copy link
Copy Markdown

This behavior is present in the original extension and I found it quite convenient.

Comment thread src/extension.ts
...indentLines(lines),
`${prefix}} catch (error) {`,
`${prefix}${indent}`,
`${prefix}${indent}console.error(error);`,

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: it could be even more useful to make sure the entire error object is printed, with something like this:

console.log(require('util').inspect(error, { depth: null }));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant