about summary refs log tree commit diff
path: root/third_party/nix/src/libmain
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nix/src/libmain')
-rw-r--r--third_party/nix/src/libmain/shared.hh3
1 files changed, 2 insertions, 1 deletions
diff --git a/third_party/nix/src/libmain/shared.hh b/third_party/nix/src/libmain/shared.hh
index 60a9e302ff5a..d1061d5e04e5 100644
--- a/third_party/nix/src/libmain/shared.hh
+++ b/third_party/nix/src/libmain/shared.hh
@@ -78,8 +78,9 @@ N getIntArg(const std::string& opt, Strings::iterator& i,
     }
   }
   N n;
-  if (!absl::SimpleAtoi(s, &n))
+  if (!absl::SimpleAtoi(s, &n)) {
     throw UsageError(format("'%1%' requires an integer argument") % opt);
+  }
   return n * multiplier;
 }