shithub: mc

Download patch

ref: aae6d00697e8b2c4e887aa225eb102b7f88358af
parent: e53b3a2d57e7162903c7312a25e37cb61b88a015
author: Ori Bernstein <[email protected]>
date: Mon May 5 10:31:55 EDT 2014

Fix the error printing in 'constrain'

    We were printing the wrong name there.

--- a/parse/infer.c
+++ b/parse/infer.c
@@ -524,7 +524,7 @@
             a->traits = mkbs();
         settrait(a, c);
     } else if (!a->traits || !bshas(a->traits, c->uid)) {
-        fatal(ctx->line, "%s needs %s near %s", tystr(a), c->name, ctxstr(st, ctx));
+        fatal(ctx->line, "%s needs %s near %s", tystr(a), namestr(c->name), ctxstr(st, ctx));
     }
 }