* Lukas Fleischer <[email protected]> (Tue, 21 Jul 2015 18:25:18 +0200): > 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.
