Skip to content

Commit

Permalink
Adding message to exceptions in Dumps
Browse files Browse the repository at this point in the history
  • Loading branch information
MoaidHathot committed Apr 3, 2023
1 parent ac73d4c commit 63f1d92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Dumpify/Extensions/DumpExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ static bool TryGenerate(Type type, PropertyInfo? info, out IDescriptor? descript
catch (Exception ex)
{

Console.WriteLine($"[Failed to Generate descriptor for {typeof(T)} and Property: {info}]");
Console.WriteLine($"[Failed to Generate descriptor for {typeof(T)} and Property: {info}]. {ex.Message}");

#if DEBUG
Console.WriteLine(ex);
Expand All @@ -64,7 +64,7 @@ static void RenderSafely(T? obj, IDescriptor? descriptor, RendererConfig config)
}
catch (Exception ex)
{
Console.WriteLine($"[Failed to Render {typeof(T)} - {obj}]");
Console.WriteLine($"[Failed to Render {typeof(T)} - {obj}]. {ex.Message}");

#if DEBUG
Console.WriteLine(ex);
Expand Down

0 comments on commit 63f1d92

Please sign in to comment.