logError
This commit is contained in:
@@ -65,7 +65,6 @@ int main()
|
||||
.description = "Vomit description",
|
||||
});
|
||||
|
||||
|
||||
// Error in a program; no hint and no nix code.
|
||||
logError(
|
||||
ErrorInfo { .name = "name",
|
||||
@@ -80,7 +79,6 @@ int main()
|
||||
.hint = hintfmt("there was a %1%", "warning"),
|
||||
});
|
||||
|
||||
|
||||
// Warning with nix file, line number, column, and the lines of
|
||||
// code where a warning occurred.
|
||||
SymbolTable testTable;
|
||||
|
||||
+2
-2
@@ -137,7 +137,7 @@ struct CmdVerify : StorePathsCommand
|
||||
doSigs(info2->sigs);
|
||||
} catch (InvalidPath &) {
|
||||
} catch (Error & e) {
|
||||
printError(format(ANSI_RED "error:" ANSI_NORMAL " %s") % e.what());
|
||||
logError(e.info());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -156,7 +156,7 @@ struct CmdVerify : StorePathsCommand
|
||||
done++;
|
||||
|
||||
} catch (Error & e) {
|
||||
printError(format(ANSI_RED "error:" ANSI_NORMAL " %s") % e.what());
|
||||
logError(e.info());
|
||||
failed++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user