Skip to content

Commit

Permalink
Updated Step to catch inner exception if it exists (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
Theauxm authored Aug 12, 2024
1 parent 38a2735 commit 2e2d374
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ChainSharp/Step/Step.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ public async Task<Either<Exception, TOut>> RailwayStep(Either<Exception, TIn> pr
}
catch (Exception e)
{
Console.WriteLine($"Found Exception ({e})");
return e;
Console.WriteLine($"Found Exception ({e.InnerException ?? e})");
return e.InnerException ?? e;
}
}
}
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project>
<PropertyGroup>
<Version>2.1.4</Version>
<Version>2.1.5</Version>
</PropertyGroup>
</Project>

0 comments on commit 2e2d374

Please sign in to comment.