From 9ce0eb2d07e00491ca1638853828e8972eada68b Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 5 Nov 2010 14:00:46 -0400 Subject: [PATCH] runtime: explain nacl closure failure R=r, r2 CC=golang-dev https://golang.org/cl/2889042 --- src/pkg/runtime/nacl/386/closure.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pkg/runtime/nacl/386/closure.c b/src/pkg/runtime/nacl/386/closure.c index 6cab1eb5b5..648efe6bdd 100644 --- a/src/pkg/runtime/nacl/386/closure.c +++ b/src/pkg/runtime/nacl/386/closure.c @@ -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"); } -- 2.50.0