Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add line breaks for error suggestion action #17

Merged
merged 1 commit into from
Oct 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/advisors/errors_not_handled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class ErrorsNotHandledAdvisor implements IAdvisor {
): Promise<IAdviseResult> {
const action = new ShowSuggestionAction(
"error",
`This error is \`not\` handled by Webinizer, please try to resolve it manually:\n\n\`\`\`${req.error}\`\`\``,
`This error is \`not\` handled by Webinizer, please try to resolve it manually:\n\n\`\`\`\n${req.error}\n\`\`\``,
null,
req.location ? req.location.toFileRegion() : null
);
Expand Down
2 changes: 1 addition & 1 deletion src/advisors/header_missing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class HeaderMissingAdvisor implements IAdvisor {
- If the library has already been installed, then the reason may be that the header directory is not included in compiler/linker flags, please add \`-I\${HEADER_PATH}\` to compiler/linker flags while building.`;
const action = new ShowSuggestionAction(
"error",
`**Error log**\n\n\`\`\`${errorMsg}\`\`\`\n\n${suggestionContent}`,
`**Error log**\n\n\`\`\`\n${errorMsg}\n\`\`\`\n\n${suggestionContent}`,
null,
null
);
Expand Down