Fix error reporting from search block