Skip to content

Commit 4478f1e

Browse files
Update PopupResultException
1 parent ac4eb1b commit 4478f1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CommunityToolkit.Maui/Primitives/PopupResult.shared.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public PopupResult(object? result, bool wasDismissedByTappingOutsideOfPopup) : b
2828
}
2929

3030
public T? Result => WasDismissedByTappingOutsideOfPopup && !typeof(T).IsNullable()
31-
? throw new PopupResultException($"{nameof(PopupResult)} type, {typeof(T)}, cannot be converted to null. When {nameof(WasDismissedByTappingOutsideOfPopup)} is {true}, {nameof(Result)} is always null. When using a non-nullable type, e.g. bool, be sure to first check if {nameof(WasDismissedByTappingOutsideOfPopup)} is {false} before getting the value of {nameof(Result)}")
31+
? throw new PopupResultException($"{nameof(Result)} is null, but {nameof(PopupResult)} type, {typeof(T)}, cannot be converted to null. Every time {nameof(WasDismissedByTappingOutsideOfPopup)} is {true}, {nameof(Result)} is always null. When using a non-nullable type, e.g. bool, be sure to first check if {nameof(WasDismissedByTappingOutsideOfPopup)} is {false} before getting the value of {nameof(Result)}")
3232
: field;
3333
}
3434

0 commit comments

Comments
 (0)