Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions BlazorSortableList.Lib/SortableList.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ public void OnUpdateJS(int oldIndex, int newIndex, string fromId)
{
if (DefaultSort)
{
throw new ArgumentException(
"It must be defined as either {nameof(OnUpdate)} or {nameof(DefaultSort)}, but not both together.");
throw new InvalidOperationException(
$"It must be defined as either {nameof(OnUpdate)} or {nameof(DefaultSort)}, but not both together.");
}

// invoke the OnUpdate event passing in the oldIndex and the newIndex
Expand Down