]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: say 'fatal error' instead of 'throw'
authorRuss Cox <rsc@golang.org>
Sun, 30 Dec 2012 02:48:25 +0000 (21:48 -0500)
committerRuss Cox <rsc@golang.org>
Sun, 30 Dec 2012 02:48:25 +0000 (21:48 -0500)
Fixes #4597.

R=ken2
CC=golang-dev
https://golang.org/cl/7032043

src/pkg/runtime/panic.c

index f94f1443cc44981a91104caa2d6c1c6ce68195e2..c96007dd16accffef578fee393e227c00096aae3 100644 (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