aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-package-version-details.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'mod/mod-package-version-details.cxx')
-rw-r--r--mod/mod-package-version-details.cxx17
1 files changed, 8 insertions, 9 deletions
diff --git a/mod/mod-package-version-details.cxx b/mod/mod-package-version-details.cxx
index 796f9e6..0da9678 100644
--- a/mod/mod-package-version-details.cxx
+++ b/mod/mod-package-version-details.cxx
@@ -89,20 +89,19 @@ handle (request& rq, response& rs)
full = params.form () == page_form::full;
}
- catch (const unknown_argument& e)
+ catch (const cli::exception& e)
{
throw invalid_request (400, e.what ());
}
- auto url (
- [&sver](bool f = false, const string& a = "") -> string
- {
- string u (sver);
+ auto url = [&sver] (bool f = false, const string& a = "") -> string
+ {
+ string u (sver);
- if (f) { u += "?f=full"; }
- if (!a.empty ()) { u += '#' + a; }
- return u;
- });
+ if (f) { u += "?f=full"; }
+ if (!a.empty ()) { u += '#' + a; }
+ return u;
+ };
const string title (name + " " + sver);
xml::serializer s (rs.content (), title);