diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2022-03-07 20:07:43 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2022-03-07 20:07:43 +0100 |
commit | 504e3b2a8f726227cfbc7cad1781e6848510e26d (patch) | |
tree | e1cb0e99c0676fa1aa844b59934f5ac09c4dd19f /src | |
parent | fa614fac7f5296bbf5a5552e13adcab1cd670ec8 (diff) |
Style
Diffstat (limited to 'src')
-rw-r--r-- | src/nix/flake.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nix/flake.cc b/src/nix/flake.cc index 6d5ee61be..47a380238 100644 --- a/src/nix/flake.cc +++ b/src/nix/flake.cc @@ -709,12 +709,11 @@ struct CmdFlakeInitCommon : virtual Args, EvalCommand auto templateDirAttr = cursor->getAttr("path"); auto templateDir = templateDirAttr->getString(); - if (!store->isInStore(templateDir)) { + if (!store->isInStore(templateDir)) throw TypeError( - std::string("'%s' was not found in the Nix store\n") + + "'%s' was not found in the Nix store\n" "If you've set '%s' to a string, try using a path instead.", templateDir, templateDirAttr->getAttrPathStr()); - } std::vector<Path> files; |