mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-25 01:38:12 +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
f5d7d065e2
commit
d49914e7c1
@@ -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