mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-19 19:08:05 +08:00
Fix panic dialogue when handling a message (#573)
* Fix panic dialogue when handling a message * Fix indents for github reporting * More whitespace improvements
This commit is contained in:
committed by
Keavon Chambers
parent
a9ce7b3f51
commit
1455ac3dce
@@ -52,7 +52,7 @@ export function initErrorHandling(editor: EditorState, dialogState: DialogState)
|
||||
function githubUrl(panicDetails: string): string {
|
||||
const url = new URL("https://github.com/GraphiteEditor/Graphite/issues/new");
|
||||
|
||||
const body = stripIndents`
|
||||
let body = stripIndents`
|
||||
**Describe the Crash**
|
||||
Explain clearly what you were doing when the crash occurred.
|
||||
|
||||
@@ -72,11 +72,11 @@ function githubUrl(panicDetails: string): string {
|
||||
|
||||
**Stack Trace**
|
||||
Copied from the crash dialog in the Graphite Editor:
|
||||
`;
|
||||
|
||||
\`\`\`
|
||||
${panicDetails}
|
||||
\`\`\`
|
||||
`;
|
||||
body += "\n\n```\n";
|
||||
body += panicDetails.trimEnd();
|
||||
body += "\n```";
|
||||
|
||||
const fields = {
|
||||
title: "[Crash Report] ",
|
||||
|
||||
Reference in New Issue
Block a user