Skip to content

Commit

Permalink
Merge pull request #1706 from altair-graphql/add-more-message-in-error
Browse files Browse the repository at this point in the history
Add more questions in created issue to help in investigating
  • Loading branch information
imolorhe committed Oct 15, 2021
2 parents c50d290 + cd14229 commit 878c48e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/altair-app/src/app/modules/altair/error-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ export class GlobalErrorHandler implements ErrorHandler {
const notifyService = this.injector.get(NotifyService);
const errorMessage = error.message ? error.message : error.toString();
const issueTitle = `Bug: Application error: ${errorMessage}`;
const issueBody = `Error message: ${errorMessage}\n\nError stack:\n\n\`\`\`\n${error.stack}\n\`\`\``;
const issueBody = `
\nError message: ${errorMessage}\n\nError stack:\n\n\`\`\`\n${error.stack}\n\`\`\`
\n### When did this error occur? And does it re occur, or it happened only once?\n
\n### Please provide some helpful screenshots of the bug
`;
const issueUrl = newGithubIssueUrl({
user: 'imolorhe',
repo: 'altair',
Expand Down

0 comments on commit 878c48e

Please sign in to comment.