about summary refs log tree commit diff
path: root/third_party/nix/src/nix/copy.cc
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nix/src/nix/copy.cc')
-rw-r--r--third_party/nix/src/nix/copy.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/third_party/nix/src/nix/copy.cc b/third_party/nix/src/nix/copy.cc
index fe5e37363c..633fe399b4 100644
--- a/third_party/nix/src/nix/copy.cc
+++ b/third_party/nix/src/nix/copy.cc
@@ -72,8 +72,9 @@ struct CmdCopy : StorePathsCommand {
   }
 
   void run(ref<Store> srcStore, Paths storePaths) override {
-    if (srcUri.empty() && dstUri.empty())
+    if (srcUri.empty() && dstUri.empty()) {
       throw UsageError("you must pass '--from' and/or '--to'");
+    }
 
     ref<Store> dstStore = dstUri.empty() ? openStore() : openStore(dstUri);