shithub: mc

Download patch

ref: cdcf48dae4edd909f3384be4aa34bf41d9de62bc
parent: fc186cb5dc36f2253453904d308cb0040f3e6c0c
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Oct 16 14:39:55 EDT 2017

Improve error message for missing deps.

--- a/mbld/deps.myr
+++ b/mbld/deps.myr
@@ -374,7 +374,7 @@
 const edge = {g, n, e
 	match std.htget(g.gen, e)
 	| `std.None:
-		std.fatal("nothing satisfies {} for {}\n", e, n.lbl)
+		std.fatal("{}: missing build rule for {}\n", n.lbl, e)
 	| `std.Some d:	
 		std.slpush(&n.ndep, d)
 		std.slpush(&d.ngen, n)