Skip to content

Commit

Permalink
fix: use item instead of value for exception argument
Browse files Browse the repository at this point in the history
  • Loading branch information
coder2000 committed Jul 2, 2024
1 parent 2edf010 commit 4a50b50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Ubiety.Stringprep.Core/ProhibitedValueStep.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ public string Run(string input)
var item = input.Where(value => table.Contains(value)).FirstOrDefault();
if (item != null)
{
throw new ProhibitedValueException(value);
throw new ProhibitedValueException(item);
}

return input;
}
}
}
}

0 comments on commit 4a50b50

Please sign in to comment.