diff options
author | Ben Burdette <bburdette@gmail.com> | 2020-04-21 17:07:07 -0600 |
---|---|---|
committer | Ben Burdette <bburdette@gmail.com> | 2020-04-21 17:07:07 -0600 |
commit | e4fb9a38493a041861fe5c75bc8ddd129a2e5262 (patch) | |
tree | 114bedc4dd31da6ebaf6e9b2ebe5f3d6b7b6d274 /src/nix/run.cc | |
parent | d3052197feababc312fd874e08ae48050d985eb3 (diff) |
remove 'format' from Error constructor calls
Diffstat (limited to 'src/nix/run.cc')
-rw-r--r-- | src/nix/run.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix/run.cc b/src/nix/run.cc index 8e30264c0..d790979a4 100644 --- a/src/nix/run.cc +++ b/src/nix/run.cc @@ -197,10 +197,10 @@ void chrootHelper(int argc, char * * argv) Finally freeCwd([&]() { free(cwd); }); if (chroot(tmpDir.c_str()) == -1) - throw SysError(format("chrooting into '%s'") % tmpDir); + throw SysError("chrooting into '%s'", tmpDir); if (chdir(cwd) == -1) - throw SysError(format("chdir to '%s' in chroot") % cwd); + throw SysError("chdir to '%s' in chroot", cwd); } else if (mount(realStoreDir.c_str(), storeDir.c_str(), "", MS_BIND, 0) == -1) throw SysError("mounting '%s' on '%s'", realStoreDir, storeDir); |