mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-27 00:06:16 +02:00
logError
This commit is contained in:
parent
171b4ce85c
commit
f5d3215c87
2 changed files with 2 additions and 4 deletions
|
@ -65,7 +65,6 @@ int main()
|
||||||
.description = "Vomit description",
|
.description = "Vomit description",
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
// Error in a program; no hint and no nix code.
|
// Error in a program; no hint and no nix code.
|
||||||
logError(
|
logError(
|
||||||
ErrorInfo { .name = "name",
|
ErrorInfo { .name = "name",
|
||||||
|
@ -80,7 +79,6 @@ int main()
|
||||||
.hint = hintfmt("there was a %1%", "warning"),
|
.hint = hintfmt("there was a %1%", "warning"),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
// Warning with nix file, line number, column, and the lines of
|
// Warning with nix file, line number, column, and the lines of
|
||||||
// code where a warning occurred.
|
// code where a warning occurred.
|
||||||
SymbolTable testTable;
|
SymbolTable testTable;
|
||||||
|
|
|
@ -137,7 +137,7 @@ struct CmdVerify : StorePathsCommand
|
||||||
doSigs(info2->sigs);
|
doSigs(info2->sigs);
|
||||||
} catch (InvalidPath &) {
|
} catch (InvalidPath &) {
|
||||||
} catch (Error & e) {
|
} catch (Error & e) {
|
||||||
printError(format(ANSI_RED "error:" ANSI_NORMAL " %s") % e.what());
|
logError(e.info());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -156,7 +156,7 @@ struct CmdVerify : StorePathsCommand
|
||||||
done++;
|
done++;
|
||||||
|
|
||||||
} catch (Error & e) {
|
} catch (Error & e) {
|
||||||
printError(format(ANSI_RED "error:" ANSI_NORMAL " %s") % e.what());
|
logError(e.info());
|
||||||
failed++;
|
failed++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue