diff options
Diffstat (limited to 'third_party/nix/src/nix/copy.cc')
-rw-r--r-- | third_party/nix/src/nix/copy.cc | 3 |
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 fe5e37363c30..633fe399b48c 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); |