about summary refs log tree commit diff
path: root/src/libstore
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2015-12-22T16·05+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2015-12-22T16·05+0100
commitf696af0fab1d610aa8db767e2c7e610e6b7f0899 (patch)
tree623728f3998072b05b33e2b000b35e13090884c3 /src/libstore
parenta9faa7bbce963ddb894699a7cc6ea8a3876e4d9f (diff)
Fix bad error message in Darwin chroots
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/build.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index e522cb8b4ebf..418956feb30e 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -2505,7 +2505,9 @@ void DerivationGoal::runChild()
             sandboxProfile += "(allow file-read* file-write* process-exec\n";
             for (auto & i : dirsInChroot) {
                 if (i.first != i.second)
-                    throw SysError(format("can't map '%1%' to '%2%': mismatched impure paths not supported on darwin"));
+                    throw Error(format(
+                        "can't map '%1%' to '%2%': mismatched impure paths not supported on Darwin")
+                        % i.first % i.second);
 
                 string path = i.first;
                 struct stat st;