mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-29 17:16:15 +02:00
illegal configuration line -> syntax error in configuration line
The law has nothing to do with this, although I do feel like a badass when I mess with the config. I'm a conf artist.
This commit is contained in:
parent
cf3c5cd189
commit
0fe3525223
1 changed files with 3 additions and 3 deletions
|
@ -116,7 +116,7 @@ static void parseConfigFiles(const std::string & contents, const std::string & p
|
||||||
if (tokens.empty()) continue;
|
if (tokens.empty()) continue;
|
||||||
|
|
||||||
if (tokens.size() < 2)
|
if (tokens.size() < 2)
|
||||||
throw UsageError("illegal configuration line '%1%' in '%2%'", line, path);
|
throw UsageError("syntax error in configuration line '%1%' in '%2%'", line, path);
|
||||||
|
|
||||||
auto include = false;
|
auto include = false;
|
||||||
auto ignoreMissing = false;
|
auto ignoreMissing = false;
|
||||||
|
@ -129,7 +129,7 @@ static void parseConfigFiles(const std::string & contents, const std::string & p
|
||||||
|
|
||||||
if (include) {
|
if (include) {
|
||||||
if (tokens.size() != 2)
|
if (tokens.size() != 2)
|
||||||
throw UsageError("illegal configuration line '%1%' in '%2%'", line, path);
|
throw UsageError("syntax error in configuration line '%1%' in '%2%'", line, path);
|
||||||
auto p = absPath(tokens[1], dirOf(path));
|
auto p = absPath(tokens[1], dirOf(path));
|
||||||
if (pathExists(p)) {
|
if (pathExists(p)) {
|
||||||
try {
|
try {
|
||||||
|
@ -145,7 +145,7 @@ static void parseConfigFiles(const std::string & contents, const std::string & p
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tokens[1] != "=")
|
if (tokens[1] != "=")
|
||||||
throw UsageError("illegal configuration line '%1%' in '%2%'", line, path);
|
throw UsageError("syntax error in configuration line '%1%' in '%2%'", line, path);
|
||||||
|
|
||||||
std::string name = std::move(tokens[0]);
|
std::string name = std::move(tokens[0]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue