summary refs log tree commit diff
path: root/src/libexpr
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2012-01-19 23:07:42 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2012-01-19 23:07:42 +0000
commit18047d4625b46ae001abc649096ab9ecd4c54560 (patch)
treea34eaa2ade550c3a421e3abae18e5af47b3f9621 /src/libexpr
parent126c7317bc2384e64e1c6d515061141718e2688f (diff)
downloadguix-18047d4625b46ae001abc649096ab9ecd4c54560.tar.gz
* Add some debug output to print the derivation name once it's known.
  This makes it easier to pinpoint the source of a crash.

Diffstat (limited to 'src/libexpr')
-rw-r--r--src/libexpr/primops.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc
index 21c9fb351d..01f933da11 100644
--- a/src/libexpr/primops.cc
+++ b/src/libexpr/primops.cc
@@ -305,7 +305,10 @@ static void prim_derivationStrict(EvalState & state, Value * * args, Value & v)
                 drv.env[key] = s;
                 if (key == "builder") drv.builder = s;
                 else if (i->name == state.sSystem) drv.platform = s;
-                else if (i->name == state.sName) drvName = s;
+                else if (i->name == state.sName) {
+                    drvName = s;
+                    printMsg(lvlVomit, format("derivation name is `%1%'") % drvName);
+                }
                 else if (key == "outputHash") outputHash = s;
                 else if (key == "outputHashAlgo") outputHashAlgo = s;
                 else if (key == "outputHashMode") {