summaryrefslogtreecommitdiff
path: root/assert/panic.go
diff options
context:
space:
mode:
Diffstat (limited to 'assert/panic.go')
-rw-r--r--assert/panic.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/assert/panic.go b/assert/panic.go
index 69828a4..e19b815 100644
--- a/assert/panic.go
+++ b/assert/panic.go
@@ -26,7 +26,7 @@ func PanicsWith[T any](t TestingTB, action func()) T {
value, ok := result.Panic.(T)
if !ok {
var zero T
- t.Fatalf("panicked with incorrect type: expected %T, but got %#v", zero, result.Panic)
+ t.Fatalf("panicked with incorrect type: expected %T, but got %T: %#v", zero, result.Panic, result.Panic)
}
return value
}