Skip to content

Commit

Permalink
Clean up error message a tiny bit!
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeasday committed Jan 15, 2024
1 parent d75b635 commit 4084f37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/lib/preview-api/src/modules/preview-web/WebView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export class WebView implements View<HTMLElement> {
const parts = message.split('\n');
if (parts.length > 1) {
[header] = parts;
detail = parts.slice(1).join('\n');
detail = parts.slice(1).join('\n').replace(/^\n/, '');
}

document.getElementById('error-message')!.innerHTML = ansiConverter.toHtml(header);
Expand Down

0 comments on commit 4084f37

Please sign in to comment.