Revert "Propagate path context via builtins.readFile"
This reverts commit f7f0116dd7
.
Issue #1174.
This commit is contained in:
parent
fa738e50bc
commit
4e6a2fbc56
1 changed files with 1 additions and 1 deletions
|
@ -779,7 +779,7 @@ static void prim_readFile(EvalState & state, const Pos & pos, Value * * args, Va
|
||||||
string s = readFile(state.checkSourcePath(path));
|
string s = readFile(state.checkSourcePath(path));
|
||||||
if (s.find((char) 0) != string::npos)
|
if (s.find((char) 0) != string::npos)
|
||||||
throw Error(format("the contents of the file ‘%1%’ cannot be represented as a Nix string") % path);
|
throw Error(format("the contents of the file ‘%1%’ cannot be represented as a Nix string") % path);
|
||||||
mkString(v, s.c_str(), context);
|
mkString(v, s.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue