summaryrefslogtreecommitdiff
path: root/src/pkg/runtime/error.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/runtime/error.go')
-rw-r--r--src/pkg/runtime/error.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pkg/runtime/error.go b/src/pkg/runtime/error.go
index 673e77b2c..289d78f49 100644
--- a/src/pkg/runtime/error.go
+++ b/src/pkg/runtime/error.go
@@ -111,6 +111,8 @@ type stringer interface {
String() string
}
+func typestring(interface{}) string
+
// For calling from C.
// Prints an argument passed to panic.
// There's room for arbitrary complexity here, but we keep it
@@ -126,6 +128,6 @@ func printany(i interface{}) {
case string:
print(v)
default:
- print(i)
+ print("(", typestring(i), ") ", i)
}
}