diff options
author | Michael Straube <straubem@gmx.de> | 2017-02-14 20:17:11 +0100 |
---|---|---|
committer | Lukas Fleischer <lfleischer@archlinux.org> | 2017-02-14 20:41:50 +0100 |
commit | f4176a8ce1e1b50e7f7d2ce660464caabbc6723f (patch) | |
tree | 426150602a86e185d807bf9c5cd0400e2a4354d2 /web/lib/aurjson.class.php | |
parent | 9df1bd5fe2f781d1b8341496378c605b34cde64f (diff) | |
download | aur-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/aurjson.class.php')
-rw-r--r-- | web/lib/aurjson.class.php | 4 |
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 = ""; |