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:
0HyperCube
2022-04-02 13:42:10 -07:00
committed by Keavon Chambers
parent f5d7d065e2
commit d49914e7c1
3 changed files with 12 additions and 11 deletions
+5 -5
View File
@@ -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] ",