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"); }