summaryrefslogtreecommitdiffstats
path: root/web/lib
diff options
context:
space:
mode:
authorMichael Straube <straubem@gmx.de>2017-02-14 20:17:11 +0100
committerLukas Fleischer <lfleischer@archlinux.org>2017-02-14 20:41:50 +0100
commitf4176a8ce1e1b50e7f7d2ce660464caabbc6723f (patch)
tree426150602a86e185d807bf9c5cd0400e2a4354d2 /web/lib
parent9df1bd5fe2f781d1b8341496378c605b34cde64f (diff)
downloadaur-f4176a8ce1e1b50e7f7d2ce660464caabbc6723f.tar.gz
aur-f4176a8ce1e1b50e7f7d2ce660464caabbc6723f.tar.xz
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: Michael Straube <straubem@gmx.de> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'web/lib')
-rw-r--r--web/lib/aurjson.class.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/lib/aurjson.class.php b/web/lib/aurjson.class.php
index 3bd9179c..e07522d4 100644
--- a/web/lib/aurjson.class.php
+++ b/web/lib/aurjson.class.php
@@ -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 = "";