Commit f4176a8c authored by Michael Straube's avatar Michael Straube Committed by Lukas Fleischer
Browse files

Make aurjson error messages consistent



All error messages in aurjson except two end with a period. Add the
missing periods to make the messages consistent.

Signed-off-by: default avatarMichael Straube <straubem@gmx.de>
Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <lfleischer@archlinux.org>
parent 9df1bd5f
......@@ -387,7 +387,7 @@ class AurJSON {
if ($search_by === 'name' || $search_by === 'name-desc') {
if (strlen($keyword_string) < 2) {
return $this->json_error('Query arg too small');
return $this->json_error('Query arg too small.');
}
$keyword_string = $this->dbh->quote("%" . addcslashes($keyword_string, '%_') . "%");
......@@ -441,7 +441,7 @@ class AurJSON {
$names = $args['names'];
if (!$ids && !$names) {
return $this->json_error('Invalid query arguments');
return $this->json_error('Invalid query arguments.');
}
$where_condition = "";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment