From b777cee2a0e5bb2d6c2d552d11c59672b0db8aa7 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 10 Sep 2018 12:33:54 +0300 Subject: Adjust package submission result manifest message --- mod/mod-package-details.cxx | 3 ++- mod/mod-package-version-details.cxx | 2 +- mod/mod-submit.cxx | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) (limited to 'mod') diff --git a/mod/mod-package-details.cxx b/mod/mod-package-details.cxx index a36d4c0..68e6530 100644 --- a/mod/mod-package-details.cxx +++ b/mod/mod-package-details.cxx @@ -111,7 +111,8 @@ handle (request& rq, response& rs) latest_package lp; if (!package_db_->query_one ( "(" + query::_val (tenant) + "," + query::_val (n) + ")", lp)) - throw invalid_request (404, "Package '" + n.string () + "' not found"); + throw invalid_request (404, + "Package " + n.string () + " not (yet) found"); pkg = package_db_->load (lp.id); } diff --git a/mod/mod-package-version-details.cxx b/mod/mod-package-version-details.cxx index ee7457a..bd06d76 100644 --- a/mod/mod-package-version-details.cxx +++ b/mod/mod-package-version-details.cxx @@ -145,7 +145,7 @@ handle (request& rq, response& rs) if (not_found) throw invalid_request ( - 404, "Package '" + pn.string () + ' ' + sver + "' not found"); + 404, "Package " + pn.string () + '/' + sver + " not (yet) found"); const string& name (pkg->name.string ()); diff --git a/mod/mod-submit.cxx b/mod/mod-submit.cxx index 1b93756..9fa5d82 100644 --- a/mod/mod-submit.cxx +++ b/mod/mod-submit.cxx @@ -601,7 +601,7 @@ handle (request& rq, response& rs) add ("", "1"); // Start of manifest. add ("status", "200"); - add ("message", "submission is queued"); + add ("message", "package submission is queued"); add ("reference", ref); add ("", ""); // End of manifest. } -- cgit v1.1