runtime: make type assertion a runtime.Error, the first of many

R=r
CC=golang-dev
https://golang.org/cl/805043
This commit is contained in:
Russ Cox 2010-03-31 15:55:10 -07:00
parent b6ad074efc
commit 63e878a750
10 changed files with 166 additions and 135 deletions

View file

@ -935,7 +935,7 @@ printpanics(Panic *p)
printf("\t");
}
printf("panic: ");
printany(p->arg);
·printany(p->arg);
if(p->recovered)
printf(" [recovered]");
printf("\n");