aboutsummaryrefslogtreecommitdiff
path: root/src/nix-build/nix-build.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-06-15 14:06:58 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-06-15 14:06:58 +0200
commit1fb762d11fadc659ef41b79eaddddcce5fbbc192 (patch)
treee47612705a9af354ab5bdca7864d70b1158ace12 /src/nix-build/nix-build.cc
parentfd64e4fb96f814440dc337ce664cdbd22e0eabb2 (diff)
Get rid of explicit ErrorInfo constructors
Diffstat (limited to 'src/nix-build/nix-build.cc')
-rwxr-xr-xsrc/nix-build/nix-build.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/nix-build/nix-build.cc b/src/nix-build/nix-build.cc
index 591fff999..da6f005a3 100755
--- a/src/nix-build/nix-build.cc
+++ b/src/nix-build/nix-build.cc
@@ -368,12 +368,11 @@ static void _main(int argc, char * * argv)
shell = drv->queryOutPath() + "/bin/bash";
} catch (Error & e) {
- logWarning(
- ErrorInfo {
- .name = "bashInteractive",
- .hint = hintfmt("%s; will use bash from your environment",
- (e.info().hint ? e.info().hint->str() : ""))
- });
+ logWarning({
+ .name = "bashInteractive",
+ .hint = hintfmt("%s; will use bash from your environment",
+ (e.info().hint ? e.info().hint->str() : ""))
+ });
shell = "bash";
}
}