about summary refs log tree commit diff
path: root/third_party/nix/src/libmain/shared.hh
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nix/src/libmain/shared.hh')
-rw-r--r--third_party/nix/src/libmain/shared.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/third_party/nix/src/libmain/shared.hh b/third_party/nix/src/libmain/shared.hh
index 337c38413da7..e5f4bec6482e 100644
--- a/third_party/nix/src/libmain/shared.hh
+++ b/third_party/nix/src/libmain/shared.hh
@@ -68,9 +68,9 @@ N getIntArg(const string& opt, Strings::iterator& i,
       } else if (u == 'T') {
         multiplier = 1ULL << 40;
       } else {
-        throw
+        throw UsageError(format("invalid unit specifier '%1%'") % u);
       }
-      UsageError(format("invalid unit specifier '%1%'") % u);
+
       s.resize(s.size() - 1);
     }
   }