File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -76,6 +76,5 @@ export default defineConfig({
7676 'no-console' : 'warn' ,
7777 'no-plusplus' : 'error' ,
7878 'object-curly-spacing' : [ 'warn' , 'always' ] ,
79- 'preserve-caught-error' : 0
8079 } ,
8180} ) ;
Original file line number Diff line number Diff line change @@ -192,7 +192,9 @@ export const fetchEvent = async (
192192 } ) ;
193193 return data ;
194194 } catch ( error ) {
195- throw Error ( JSON . stringify ( ( error as AxiosError ) . response ?. data ) ) ;
195+ throw Error ( JSON . stringify ( ( error as AxiosError ) . response ?. data ) , {
196+ cause : error ,
197+ } ) ;
196198 }
197199} ;
198200
Original file line number Diff line number Diff line change @@ -25,7 +25,9 @@ export const fetchLanguages = async (
2525 return data ;
2626 } catch ( error ) {
2727 /* istanbul ignore next */
28- throw Error ( JSON . stringify ( ( error as AxiosError ) . response ?. data ) ) ;
28+ throw Error ( JSON . stringify ( ( error as AxiosError ) . response ?. data ) , {
29+ cause : error ,
30+ } ) ;
2931 }
3032} ;
3133
Original file line number Diff line number Diff line change @@ -21,7 +21,9 @@ export const fetchWebStoreOrder = async (
2121 } ) ;
2222 return data ;
2323 } catch ( error ) {
24- throw Error ( JSON . stringify ( ( error as AxiosError ) . response ?. data ) ) ;
24+ throw Error ( JSON . stringify ( ( error as AxiosError ) . response ?. data ) , {
25+ cause : error ,
26+ } ) ;
2527 }
2628} ;
2729
Original file line number Diff line number Diff line change @@ -21,7 +21,9 @@ export const fetchWebStorePayment = async (
2121 } ) ;
2222 return data ;
2323 } catch ( error ) {
24- throw Error ( JSON . stringify ( ( error as AxiosError ) . response ?. data ) ) ;
24+ throw Error ( JSON . stringify ( ( error as AxiosError ) . response ?. data ) , {
25+ cause : error ,
26+ } ) ;
2527 }
2628} ;
2729
Original file line number Diff line number Diff line change @@ -41,7 +41,9 @@ export const fetchRegistration = async (
4141 } ) ;
4242 return data ;
4343 } catch ( error ) {
44- throw Error ( JSON . stringify ( ( error as AxiosError ) . response ?. data ) ) ;
44+ throw Error ( JSON . stringify ( ( error as AxiosError ) . response ?. data ) , {
45+ cause : error ,
46+ } ) ;
4547 }
4648} ;
4749
Original file line number Diff line number Diff line change @@ -27,7 +27,9 @@ export const createSeatsReservation = async ({
2727 } ) ;
2828 return data ;
2929 } catch ( error ) {
30- throw Error ( JSON . stringify ( ( error as AxiosError ) . response ?. data ) ) ;
30+ throw Error ( JSON . stringify ( ( error as AxiosError ) . response ?. data ) , {
31+ cause : error ,
32+ } ) ;
3133 }
3234} ;
3335
@@ -46,7 +48,9 @@ export const updateSeatsReservation = async ({
4648 } ) ;
4749 return data ;
4850 } catch ( error ) {
49- throw Error ( JSON . stringify ( ( error as AxiosError ) . response ?. data ) ) ;
51+ throw Error ( JSON . stringify ( ( error as AxiosError ) . response ?. data ) , {
52+ cause : error ,
53+ } ) ;
5054 }
5155} ;
5256
Original file line number Diff line number Diff line change @@ -68,7 +68,9 @@ export const fetchSignup = async (
6868 return data ;
6969 } catch ( error ) {
7070 /* istanbul ignore next */
71- throw Error ( JSON . stringify ( ( error as AxiosError ) . response ?. data ) ) ;
71+ throw Error ( JSON . stringify ( ( error as AxiosError ) . response ?. data ) , {
72+ cause : error ,
73+ } ) ;
7274 }
7375} ;
7476
@@ -87,7 +89,9 @@ export const createSignups = async ({
8789 } ) ;
8890 return data ;
8991 } catch ( error ) {
90- throw Error ( JSON . stringify ( ( error as AxiosError ) . response ?. data ) ) ;
92+ throw Error ( JSON . stringify ( ( error as AxiosError ) . response ?. data ) , {
93+ cause : error ,
94+ } ) ;
9195 }
9296} ;
9397
@@ -105,7 +109,9 @@ export const deleteSignup = async ({
105109 } ) ;
106110 return data ;
107111 } catch ( error ) {
108- throw Error ( JSON . stringify ( ( error as AxiosError ) . response ?. data ) ) ;
112+ throw Error ( JSON . stringify ( ( error as AxiosError ) . response ?. data ) , {
113+ cause : error ,
114+ } ) ;
109115 }
110116} ;
111117
@@ -124,7 +130,9 @@ export const patchSignup = async ({
124130 } ) ;
125131 return data ;
126132 } catch ( error ) {
127- throw Error ( JSON . stringify ( ( error as AxiosError ) . response ?. data ) ) ;
133+ throw Error ( JSON . stringify ( ( error as AxiosError ) . response ?. data ) , {
134+ cause : error ,
135+ } ) ;
128136 }
129137} ;
130138
@@ -143,7 +151,9 @@ export const updateSignup = async ({
143151 } ) ;
144152 return data ;
145153 } catch ( error ) {
146- throw Error ( JSON . stringify ( ( error as AxiosError ) . response ?. data ) ) ;
154+ throw Error ( JSON . stringify ( ( error as AxiosError ) . response ?. data ) , {
155+ cause : error ,
156+ } ) ;
147157 }
148158} ;
149159
Original file line number Diff line number Diff line change @@ -300,7 +300,9 @@ export const createSignupGroup = async ({
300300 } ) ;
301301 return data ;
302302 } catch ( error ) {
303- throw Error ( JSON . stringify ( ( error as AxiosError ) . response ?. data ) ) ;
303+ throw Error ( JSON . stringify ( ( error as AxiosError ) . response ?. data ) , {
304+ cause : error ,
305+ } ) ;
304306 }
305307} ;
306308
@@ -316,7 +318,9 @@ export const fetchSignupGroup = async (
316318 return data ;
317319 } catch ( error ) {
318320 /* istanbul ignore next */
319- throw Error ( JSON . stringify ( ( error as AxiosError ) . response ?. data ) ) ;
321+ throw Error ( JSON . stringify ( ( error as AxiosError ) . response ?. data ) , {
322+ cause : error ,
323+ } ) ;
320324 }
321325} ;
322326
@@ -334,7 +338,9 @@ export const deleteSignupGroup = async ({
334338 } ) ;
335339 return data ;
336340 } catch ( error ) {
337- throw Error ( JSON . stringify ( ( error as AxiosError ) . response ?. data ) ) ;
341+ throw Error ( JSON . stringify ( ( error as AxiosError ) . response ?. data ) , {
342+ cause : error ,
343+ } ) ;
338344 }
339345} ;
340346
@@ -353,7 +359,9 @@ export const updateSignupGroup = async ({
353359 } ) ;
354360 return data ;
355361 } catch ( error ) {
356- throw Error ( JSON . stringify ( ( error as AxiosError ) . response ?. data ) ) ;
362+ throw Error ( JSON . stringify ( ( error as AxiosError ) . response ?. data ) , {
363+ cause : error ,
364+ } ) ;
357365 }
358366} ;
359367
Original file line number Diff line number Diff line change @@ -46,6 +46,8 @@ export const fetchSignups = async (
4646 return data ;
4747 } catch ( error ) {
4848 /* istanbul ignore next */
49- throw Error ( JSON . stringify ( ( error as AxiosError ) . response ?. data ) ) ;
49+ throw Error ( JSON . stringify ( ( error as AxiosError ) . response ?. data ) , {
50+ cause : error ,
51+ } ) ;
5052 }
5153} ;
You can’t perform that action at this time.
0 commit comments