mirror of
https://github.com/golang/go
synced 2024-11-18 18:04:46 -07:00
runtime: explain nacl closure failure
R=r, r2 CC=golang-dev https://golang.org/cl/2889042
This commit is contained in:
parent
4d429c7fe5
commit
9ce0eb2d07
@ -219,6 +219,8 @@ runtime·closure(int32 siz, byte *fn, byte *arg0)
|
||||
e = runtime·dyncode_copy(clos.ecode, clos.buf, ClosureChunk);
|
||||
if(e != 0) {
|
||||
fd = 2;
|
||||
if(e == -22)
|
||||
runtime·throw("NaCl running with dyncode_copy disabled; export NACLDYNCODE=1 in your environment");
|
||||
runtime·printf("dyncode_copy: error %d\n", e);
|
||||
runtime·throw("dyncode_copy");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user