REST API: report errors in search-log
Merge pull request #1298 from zeha/search-log-throw-error

REST API: report errors in search-log