File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ const TestEditor: React.FC<TestEditorProps> = React.memo(
196
196
makeToast (
197
197
{
198
198
title : "Error Running Test" ,
199
- description : err . message ,
199
+ description : err . response ?. data ?? err . message ,
200
200
status : "error" ,
201
201
} ,
202
202
err . response ?. status ,
@@ -232,7 +232,7 @@ const TestEditor: React.FC<TestEditorProps> = React.memo(
232
232
makeToast (
233
233
{
234
234
title : "Error Saving" ,
235
- description : err . message ,
235
+ description : err . response ?. data ?? err . message ,
236
236
status : "error" ,
237
237
} ,
238
238
err . response ?. status ,
@@ -262,7 +262,7 @@ const TestEditor: React.FC<TestEditorProps> = React.memo(
262
262
makeToast (
263
263
{
264
264
title : "Error Running Test" ,
265
- description : err . message ,
265
+ description : err . response ?. data ?? err . message ,
266
266
status : "error" ,
267
267
} ,
268
268
err . response ?. status ,
@@ -291,7 +291,7 @@ const TestEditor: React.FC<TestEditorProps> = React.memo(
291
291
makeToast (
292
292
{
293
293
title : "Error Deleting Test" ,
294
- description : err . message ,
294
+ description : err . response ?. data ?? err . message ,
295
295
status : "error" ,
296
296
} ,
297
297
err . response ?. status ,
Original file line number Diff line number Diff line change @@ -26,10 +26,7 @@ export const makeToast = (
26
26
statusCode ?: number ,
27
27
) : UseToastOptions => ( {
28
28
...e ,
29
- description :
30
- statusCode && statusCode === 401
31
- ? "Not enabled in sandbox mode..."
32
- : e . description ,
29
+ description : e . description ,
33
30
isClosable : true ,
34
31
position : "top" ,
35
32
} )
You can’t perform that action at this time.
0 commit comments