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/libutil/url.cc | |
parent | decc14d4b7fbe1664ae609563003c883d4e426a8 (diff) |
Prefer to throw specific errors
Signed-off-by: Pamplemousse <xav.maso@gmail.com>
Diffstat (limited to 'src/libutil/url.cc')
-rw-r--r-- | src/libutil/url.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/url.cc b/src/libutil/url.cc index c1bab866c..f6232d255 100644 --- a/src/libutil/url.cc +++ b/src/libutil/url.cc @@ -32,7 +32,7 @@ ParsedURL parseURL(const std::string & url) auto isFile = scheme.find("file") != std::string::npos; if (authority && *authority != "" && isFile) - throw Error("file:// URL '%s' has unexpected authority '%s'", + throw BadURL("file:// URL '%s' has unexpected authority '%s'", url, *authority); if (isFile && path.empty()) |