mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Update src/plugins/data/common/search/search_source/fetch/request_error.ts
Co-authored-by: Michael Dokolin <dokmic@gmail.com>
This commit is contained in:
parent
da53ea8d93
commit
ab182e84ed
1 changed files with 1 additions and 4 deletions
|
@ -16,10 +16,7 @@ import { SearchError } from './types';
|
|||
* @param {Object} resp - optional HTTP response
|
||||
*/
|
||||
export class RequestFailure extends KbnError {
|
||||
public resp?: IKibanaSearchResponse;
|
||||
constructor(err: SearchError | null = null, resp?: IKibanaSearchResponse) {
|
||||
constructor(err: SearchError | null = null, public resp?: IKibanaSearchResponse) {
|
||||
super(`Request to Elasticsearch failed: ${JSON.stringify(resp?.rawResponse || err?.message)}`);
|
||||
|
||||
this.resp = resp;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue