Skip to content

Commit 3e8ae8f

Browse files
committed
Add more information to assertion message
1 parent a416361 commit 3e8ae8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NetMQ/Utils/Assumes.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ internal static class Assumes
99
[Conditional("DEBUG")]
1010
public static void NotNull<T>([NotNull] T o) where T : class?
1111
{
12-
Debug.Assert(o is object);
12+
Debug.Assert(o is object, $"Unexpected null of type {typeof(T).Name}");
1313
}
1414
#pragma warning restore CS8777 // Parameter must have a non-null value when exiting.
1515
}

0 commit comments

Comments
 (0)