build.cc: improve message if home directory exists

This commit is contained in:
Domen Kožar 2020-04-08 18:27:10 +02:00 committed by GitHub
parent 96f3c36709
commit bf81b31559
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2161,7 +2161,7 @@ void DerivationGoal::startBuilder()
if (needsHashRewrite()) {
if (pathExists(homeDir))
throw Error(format("directory '%1%' exists; please remove it") % homeDir);
throw Error(format("home directory '%1%' exists; please remove it to assure purity of builds without sandboxing") % homeDir);
/* We're not doing a chroot build, but we have some valid
output paths. Since we can't just overwrite or delete