1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 06:31:14 +02:00

switch from printError warnings to logWarnings

This commit is contained in:
Ben Burdette 2020-05-11 13:02:16 -06:00
parent 55eb717148
commit 958e81987b
6 changed files with 31 additions and 10 deletions

View file

@ -368,9 +368,12 @@ static void _main(int argc, char * * argv)
shell = drv->queryOutPath() + "/bin/bash";
} catch (Error & e) {
// TODO: append error msg; warn()?
logError(e.info());
printError("warning: %s; will use bash from your environment", e.what());
logWarning(
ErrorInfo {
.name = "bashInteractive",
.hint = hintfmt("%s; will use bash from your environment",
(e.info().hint ? e.info().hint->str() : ""))
});
shell = "bash";
}
}