mirror of
https://github.com/NixOS/nix
synced 2025-06-27 08:31:16 +02:00
switch from printError warnings to logWarnings
This commit is contained in:
parent
55eb717148
commit
958e81987b
6 changed files with 31 additions and 10 deletions
|
@ -769,7 +769,11 @@ void ValidPathInfo::sign(const Store & store, const SecretKey & secretKey)
|
|||
bool ValidPathInfo::isContentAddressed(const Store & store) const
|
||||
{
|
||||
auto warn = [&]() {
|
||||
printError("warning: path '%s' claims to be content-addressed but isn't", store.printStorePath(path));
|
||||
logWarning(
|
||||
ErrorInfo{
|
||||
.name = "Path not content-addressed",
|
||||
.hint = hintfmt("path '%s' claims to be content-addressed but isn't", store.printStorePath(path))
|
||||
});
|
||||
};
|
||||
|
||||
if (hasPrefix(ca, "text:")) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue