Skip to content

Commit 47c2214

Browse files
authored
Merge pull request #727 from Esri/Caleb/Backport-ImproveErrorAlertDescription
[Fix] Backport: Use `LocalizedError.errorDescription` in error alert
2 parents 9ba1418 + 3d4f95d commit 47c2214

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Shared/Supporting Files/Extensions/View+ErrorAlert.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ extension View {
3434
error.wrappedValue = nil
3535
}
3636
} message: { error in
37-
Text(String(reflecting: error))
37+
Text((error as? LocalizedError)?.errorDescription ?? String(reflecting: error))
3838
}
3939
}
4040
}

0 commit comments

Comments
 (0)