mirror of
https://github.com/NixOS/nix
synced 2025-06-26 20:01:15 +02:00
convert some errors
This commit is contained in:
parent
a3030e3c31
commit
4b99c09f5c
7 changed files with 86 additions and 22 deletions
|
@ -204,7 +204,10 @@ void handleSQLiteBusy(SQLiteBusy & e)
|
|||
|
||||
if (now > lastWarned + 10) {
|
||||
lastWarned = now;
|
||||
printError("warning: %s", e.what());
|
||||
logWarning(
|
||||
ErrorInfo { .name = "sqlite busy",
|
||||
.hint = hintfmt(e.what())
|
||||
});
|
||||
}
|
||||
|
||||
/* Sleep for a while since retrying the transaction right away
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue