diff options
author | Pamplemousse <xav.maso@gmail.com> | 2021-06-29 14:28:43 -0700 |
---|---|---|
committer | Pamplemousse <xav.maso@gmail.com> | 2021-07-01 11:09:31 -0700 |
commit | 4a7a8b87cd0dd383f1059fe7903c4b001314f58d (patch) | |
tree | 3fc2a6ec3bc343f790803abcb1c5bb516d283dfe /src/libcmd | |
parent | decc14d4b7fbe1664ae609563003c883d4e426a8 (diff) |
Prefer to throw specific errors
Signed-off-by: Pamplemousse <xav.maso@gmail.com>
Diffstat (limited to 'src/libcmd')
-rw-r--r-- | src/libcmd/command.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcmd/command.cc b/src/libcmd/command.cc index 569c4b9e4..6777b23be 100644 --- a/src/libcmd/command.cc +++ b/src/libcmd/command.cc @@ -188,7 +188,7 @@ void MixProfile::updateProfile(const BuiltPaths & buildables) } if (result.size() != 1) - throw Error("'--profile' requires that the arguments produce a single store path, but there are %d", result.size()); + throw UsageError("'--profile' requires that the arguments produce a single store path, but there are %d", result.size()); updateProfile(result[0]); } |