Skip to content

Commit

Permalink
Updated README example.
Browse files Browse the repository at this point in the history
  • Loading branch information
jscarle committed Feb 27, 2024
1 parent bf135ce commit 95a91d5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,8 @@ if (result.IsSuccess)
if (result.IsFailed)
{
// The result is failed therefore IsSuccess will be false.
var firstError = result.Errors.First();
if (firstError.Message.Length > 0)
Console.WriteLine(firstError.Message);
if (result.Error.Message.Length > 0)
Console.WriteLine(result.Error.Message);
else
Console.WriteLine("An unknown error occured!");
}
Expand Down

0 comments on commit 95a91d5

Please sign in to comment.