mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2025-01-19 09:36:47 +02:00
Merge pull request #10358 from yshui/fix-include
Fix "include" directive in config file
This commit is contained in:
commit
911febe56c
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ static void applyConfigInner(const std::string & contents, const std::string & p
|
||||||
auto p = absPath(tokens[1], dirOf(path));
|
auto p = absPath(tokens[1], dirOf(path));
|
||||||
if (pathExists(p)) {
|
if (pathExists(p)) {
|
||||||
try {
|
try {
|
||||||
std::string includedContents = readFile(path);
|
std::string includedContents = readFile(p);
|
||||||
applyConfigInner(includedContents, p, parsedContents);
|
applyConfigInner(includedContents, p, parsedContents);
|
||||||
} catch (SystemError &) {
|
} catch (SystemError &) {
|
||||||
// TODO: Do we actually want to ignore this? Or is it better to fail?
|
// TODO: Do we actually want to ignore this? Or is it better to fail?
|
||||||
|
|
Loading…
Reference in a new issue