We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80d830d commit c272ac9Copy full SHA for c272ac9
src/utils/error.ts
@@ -66,8 +66,14 @@ export function extractErrorDescription(error: any) {
66
return baseErrorMapping.network_error;
67
}
68
69
- if (isOperationOutcome(error) && error.issue[0].details?.text) {
70
- return error.issue[0].details?.text;
+ if (isOperationOutcome(error)) {
+ if (error.issue[0].details?.text) {
71
+ return error.issue[0].details?.text;
72
+ }
73
+
74
+ if (error.issue[0].diagnostics) {
75
+ return error.issue[0].diagnostics;
76
77
78
79
if (isBackendError(error) && error.error_description) {
0 commit comments