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 21:42:10 +01:00
committed by Keavon Chambers
parent a9ce7b3f51
commit 1455ac3dce
3 changed files with 12 additions and 11 deletions

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] ",