Skip to content

Commit

Permalink
Add more extensive error messages for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Smrecz committed Mar 21, 2023
1 parent 7db1f54 commit e2ede08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tatum.Examples/Notifications/Examples/Subscribe.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public async ValueTask DisposeAsync()

if (!notifications.Success)
{
throw new Exception("Failed to get notifications.");
throw new Exception($"Failed to get notifications: {notifications.ErrorMessage}");
}

foreach (var notification in notifications.Value)
Expand All @@ -56,7 +56,7 @@ public async ValueTask DisposeAsync()

if (!unsubscribe.Success)
{
throw new Exception("Failed to unsubscribe.");
throw new Exception($"Failed to unsubscribe: {unsubscribe.ErrorMessage}");
}
}
}
Expand Down

0 comments on commit e2ede08

Please sign in to comment.