Skip to content

Commit

Permalink
quick error update
Browse files Browse the repository at this point in the history
  • Loading branch information
dilanx committed May 8, 2023
1 parent 93e86e1 commit 88a2de2
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/utility/Utility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,20 +258,22 @@ let Utility = {
.join(', '),

errorAlert: (from: PlanErrorLocation, error: string): AlertData => {
const errorText = error + ' - ' + from;
return {
title: "Well, this isn't good...",
message: `Oh nooo this wasn't supposed to happen. An unexpected error occurred.
Check out the site status to see if what you're experiencing is a known issue.
If it's not, please let me know. Make sure to note the error message below.`,
confirmButton: 'View status',
message: `Oh nooo this wasn't supposed to happen. An unexpected error occurred. You can troubleshoot this error or try again later.`,
confirmButton: 'Troubleshoot this error',
cancelButton: 'Close',
color: 'red',
icon: ExclamationTriangleIcon,
textView: {
text: error + ' - ' + from,
text: errorText,
},
action: () => {
window.open('https://dilan.statuspage.io', '_blank');
window.open(
`https://kb.dilanxd.com/pa101?e=${encodeURIComponent(errorText)}`,
'_blank'
);
},
};
},
Expand Down

0 comments on commit 88a2de2

Please sign in to comment.