mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 22:16:16 +02:00
todo removal
This commit is contained in:
parent
e76ad2e48a
commit
e3901638b5
4 changed files with 0 additions and 5 deletions
|
@ -23,7 +23,6 @@ int main()
|
||||||
logger->logEI(e.info());
|
logger->logEI(e.info());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ErrorInfo constructor
|
// ErrorInfo constructor
|
||||||
try {
|
try {
|
||||||
auto e = Error("some error");
|
auto e = Error("some error");
|
||||||
|
|
|
@ -41,7 +41,6 @@ AutoCloseFD LocalStore::openGCLock(LockType lockType)
|
||||||
throw SysError("opening global GC lock '%1%'", fnGCLock);
|
throw SysError("opening global GC lock '%1%'", fnGCLock);
|
||||||
|
|
||||||
if (!lockFile(fdGCLock.get(), lockType, false)) {
|
if (!lockFile(fdGCLock.get(), lockType, false)) {
|
||||||
// TODO: info?
|
|
||||||
printError("waiting for the big garbage collector lock...");
|
printError("waiting for the big garbage collector lock...");
|
||||||
lockFile(fdGCLock.get(), lockType, true);
|
lockFile(fdGCLock.get(), lockType, true);
|
||||||
}
|
}
|
||||||
|
|
|
@ -247,7 +247,6 @@ static void daemonLoop(char * * argv)
|
||||||
} catch (Interrupted & e) {
|
} catch (Interrupted & e) {
|
||||||
return;
|
return;
|
||||||
} catch (Error & error) {
|
} catch (Error & error) {
|
||||||
// TODO append error message
|
|
||||||
ErrorInfo ei = error.info();
|
ErrorInfo ei = error.info();
|
||||||
string prevhint = (error.info().hint.has_value() ? error.info().hint->str() : "");
|
string prevhint = (error.info().hint.has_value() ? error.info().hint->str() : "");
|
||||||
ei.hint = std::optional(hintfmt("error processing connection: %1%", prevhint));
|
ei.hint = std::optional(hintfmt("error processing connection: %1%", prevhint));
|
||||||
|
|
|
@ -64,13 +64,11 @@ struct CmdUpgradeNix : MixDryRun, StoreCommand
|
||||||
|
|
||||||
if (dryRun) {
|
if (dryRun) {
|
||||||
stopProgressBar();
|
stopProgressBar();
|
||||||
// TODO change to info?
|
|
||||||
logWarning(
|
logWarning(
|
||||||
ErrorInfo {
|
ErrorInfo {
|
||||||
.name = "Version update",
|
.name = "Version update",
|
||||||
.hint = hintfmt("would upgrade to version %s", version)
|
.hint = hintfmt("would upgrade to version %s", version)
|
||||||
});
|
});
|
||||||
// printError("would upgrade to version %s", version);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue