nix-daemon: Don't die if the user sends an unknown setting
This commit is contained in:
parent
872ba75d8b
commit
1673c373c9
|
@ -453,10 +453,14 @@ static void performOp(ref<LocalStore> store, bool trusted, unsigned int clientVe
|
||||||
for (unsigned int i = 0; i < n; i++) {
|
for (unsigned int i = 0; i < n; i++) {
|
||||||
string name = readString(from);
|
string name = readString(from);
|
||||||
string value = readString(from);
|
string value = readString(from);
|
||||||
if (name == "build-timeout")
|
try {
|
||||||
settings.set(name, value);
|
if (name == "build-timeout")
|
||||||
else
|
settings.set(name, value);
|
||||||
settings.set(trusted ? name : "untrusted-" + name, value);
|
else
|
||||||
|
settings.set(trusted ? name : "untrusted-" + name, value);
|
||||||
|
} catch (UsageError & e) {
|
||||||
|
warn(e.what());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
startWork();
|
startWork();
|
||||||
|
|
Loading…
Reference in a new issue