runtime: say 'fatal error' instead of 'throw'

Fixes #4597.

R=ken2
CC=golang-dev
https://golang.org/cl/7032043
This commit is contained in:
Russ Cox 2012-12-29 21:48:25 -05:00
parent 0c6beb00fb
commit a22389ec38
1 changed files with 1 additions and 1 deletions

View File

@ -455,7 +455,7 @@ void
runtime·throw(int8 *s)
{
runtime·startpanic();
runtime·printf("throw: %s\n", s);
runtime·printf("fatal error: %s\n", s);
runtime·dopanic(0);
*(int32*)0 = 0; // not reached
runtime·exit(1); // even more not reached