[aur-dev] [PATCH v2 2/3] aurjson.class.php: Add method load_comment
marcel.korpel at gmail.com
Tue Jul 21 18:57:33 UTC 2015
* Lukas Fleischer <lfleischer at archlinux.org> (Tue, 21 Jul 2015 18:25:18
> We can directly return here when adding early returns for the error
> cases. I wonder whether it is a good idea to provide different data
> types, depending on whether an error occurred or not.
I don't think so, but at least this isn't a public API.
> Would it make sense to use json_results() and json_error() here?
In all cases, you mean, error or not?
Could be, but suggest() and suggest_pkgbase() also don't make use of
them and they aren't public APIs either, but directly used by AJAX
requests on the site.
More information about the aur-dev