@@ -19,14 +19,14 @@ import { intl } from './util/intl'
1919import { CustomError } from './util/customError'
2020
2121const errorMessages = [
22- " Uh oh!" ,
22+ ' Uh oh!' ,
2323 "Time to fire up the ol' debugger!" ,
24- " Your armor stands are sad :(" ,
25- " Ok, who pushed the big red button?" ,
24+ ' Your armor stands are sad :(' ,
25+ ' Ok, who pushed the big red button?' ,
2626]
2727
2828function getRandomErrorMessage ( ) {
29- const index = Math . round ( Math . random ( ) * ( errorMessages . length - 1 ) )
29+ const index = Math . round ( Math . random ( ) * ( errorMessages . length - 1 ) )
3030 return errorMessages [ index ]
3131}
3232
@@ -42,14 +42,20 @@ function showUnknownErrorDialog(e: CustomError | any) {
4242 id : 'animatedJava.dialogs.miscError' ,
4343 title : tl ( 'animatedJava.dialogs.errors.misc.title' ) ,
4444 lines : [
45- tl ( 'animatedJava.dialogs.errors.misc.body' , {
46- buildID : process . env . BUILD_ID ,
47- errorMessage : e . options ? e . options . message : e . message ,
48- randomErrorMessage : getRandomErrorMessage ( ) ,
49- errorStack : e . stack ,
50- discordLink : process . env . DISCORD_LINK ,
51- githubLink : process . env . GITHUB_ISSUES_LINK ,
52- } , true ) ,
45+ tl (
46+ 'animatedJava.dialogs.errors.misc.body' ,
47+ {
48+ buildID : process . env . BUILD_ID ,
49+ errorMessage : e . options
50+ ? e . options . message
51+ : e . message ,
52+ randomErrorMessage : getRandomErrorMessage ( ) ,
53+ errorStack : e . stack ,
54+ discordLink : process . env . DISCORD_LINK ,
55+ githubLink : process . env . GITHUB_ISSUES_LINK ,
56+ } ,
57+ true
58+ ) ,
5359 ] ,
5460 width : 1024 ,
5561 height : 512 ,
0 commit comments