Skip to content

Commit

Permalink
Update MauiSettingsGeneric.cs
Browse files Browse the repository at this point in the history
Fixed throwing on iOS
  • Loading branch information
AndreasReitberger committed Aug 8, 2023
1 parent 4b7687d commit 15c0305
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/MauiSettings/MauiSettingsGeneric.cs
Original file line number Diff line number Diff line change
Expand Up @@ -532,10 +532,12 @@ List<MauiSettingAttribute> settingBaseAttributes
switch (target)
{
case MauiSettingsTarget.ICloud:
throw new NotSupportedException("SecureStorage is not available for iCloud sync!");
if (throwOnError) throw new NotSupportedException("SecureStorage is not available for iCloud sync!");
else break;
case MauiSettingsTarget.Local:
default:
throw new NotSupportedException("SecureStorage is only available in the Async methods!");
if (throwOnError) throw new NotSupportedException("SecureStorage is only available in the Async methods!");
else break;

}
#else
Expand Down

0 comments on commit 15c0305

Please sign in to comment.