mirror of https://github.com/golang/go.git
runtime: say 'fatal error' instead of 'throw'
Fixes #4597. R=ken2 CC=golang-dev https://golang.org/cl/7032043
This commit is contained in:
parent
0c6beb00fb
commit
a22389ec38
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue