Added support for errors and stacktrace to Search adapter.