aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-06-08 16:20:00 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-06-08 16:20:00 +0200
commit6470450ab48196668099eeca2f171fec110d647b (patch)
tree8ac719d47c3442f3f5b0b640d8b09b1a22a94c77 /src/libexpr
parent9ef6048d784a298f384affdec941b5b38c61346c (diff)
Add completion for --update-input
Diffstat (limited to 'src/libexpr')
-rw-r--r--src/libexpr/flake/lockfile.cc2
-rw-r--r--src/libexpr/flake/lockfile.hh1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/libexpr/flake/lockfile.cc b/src/libexpr/flake/lockfile.cc
index f26baa697..5c2f6f04c 100644
--- a/src/libexpr/flake/lockfile.cc
+++ b/src/libexpr/flake/lockfile.cc
@@ -198,7 +198,7 @@ InputPath parseInputPath(std::string_view s)
for (auto & elem : tokenizeString<std::vector<std::string>>(s, "/")) {
if (!std::regex_match(elem, flakeIdRegex))
- throw Error("invalid flake input path element '%s'", elem);
+ throw UsageError("invalid flake input path element '%s'", elem);
path.push_back(elem);
}
diff --git a/src/libexpr/flake/lockfile.hh b/src/libexpr/flake/lockfile.hh
index ba47f9b89..6b05e8c24 100644
--- a/src/libexpr/flake/lockfile.hh
+++ b/src/libexpr/flake/lockfile.hh
@@ -72,4 +72,3 @@ InputPath parseInputPath(std::string_view s);
std::string diffLockFiles(const LockFile & oldLocks, const LockFile & newLocks);
}
-