Skip to content

Commit

Permalink
HxGrid exception text adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
hakenr committed Jan 14, 2024
1 parent a7b6074 commit d044b7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Havit.Blazor.Components.Web.Bootstrap/Grids/HxGrid.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -689,12 +689,12 @@ private async ValueTask RefreshPaginationOrLoadMoreDataCoreAsync(bool forceReloa

if ((request.Count != null) && (result.TotalCount == null))
{
throw new InvalidOperationException($"{nameof(DataProvider)} did not set ${nameof(GridDataProviderResult<TItem>.TotalCount)}.");
throw new InvalidOperationException($"{nameof(DataProvider)} did not set {nameof(GridDataProviderResult<TItem>.TotalCount)}.");
}

if (result.TotalCount != null && (dataCount > result.TotalCount.Value))
{
throw new InvalidOperationException($"{nameof(DataProvider)} set ${nameof(GridDataProviderResult<TItem>.TotalCount)} property byt the value is smaller than the number of data items.");
throw new InvalidOperationException($"Invalid {nameof(DataProvider)} response. {nameof(GridDataProviderResult<TItem>.TotalCount)} value smaller than the number of returned data items.");
}
}
#endregion
Expand Down

0 comments on commit d044b7a

Please sign in to comment.