aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-09-10 12:33:54 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-09-10 12:33:54 +0300
commitb777cee2a0e5bb2d6c2d552d11c59672b0db8aa7 (patch)
treeb63a475efe845a32812411df9d12a28d5128efdb /mod
parentffdf09ec8951f0bcdd72b5b5edc9ac0079b79079 (diff)
Adjust package submission result manifest message
Diffstat (limited to 'mod')
-rw-r--r--mod/mod-package-details.cxx3
-rw-r--r--mod/mod-package-version-details.cxx2
-rw-r--r--mod/mod-submit.cxx2
3 files changed, 4 insertions, 3 deletions
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<latest_package> (
"(" + 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<package> (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.
}