Reload the search page when there is error and print error.