This commit is contained in:
Eelco Dolstra 2022-03-07 20:07:43 +01:00
parent fa614fac7f
commit 504e3b2a8f

View file

@ -709,12 +709,11 @@ struct CmdFlakeInitCommon : virtual Args, EvalCommand
auto templateDirAttr = cursor->getAttr("path"); auto templateDirAttr = cursor->getAttr("path");
auto templateDir = templateDirAttr->getString(); auto templateDir = templateDirAttr->getString();
if (!store->isInStore(templateDir)) { if (!store->isInStore(templateDir))
throw TypeError( 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.", "If you've set '%s' to a string, try using a path instead.",
templateDir, templateDirAttr->getAttrPathStr()); templateDir, templateDirAttr->getAttrPathStr());
}
std::vector<Path> files; std::vector<Path> files;