Skip to content

Commit

Permalink
adapt for 7.8
Browse files Browse the repository at this point in the history
  • Loading branch information
pgayvallet committed Jul 13, 2020
1 parent 6a19eaa commit 8d8f5b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/server/http/router/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import Boom from 'boom';

import { isConfigSchema } from '@kbn/config-schema';
import { Logger } from '../../logging';
import { LegacyElasticsearchErrorHelpers } from '../../elasticsearch/legacy/errors';
import { ElasticsearchErrorHelpers } from '../../elasticsearch';
import { KibanaRequest } from './request';
import { KibanaResponseFactory, kibanaResponseFactory, IKibanaResponse } from './response';
import { RouteConfig, RouteConfigOptions, RouteMethod, validBodyOutput } from './route';
Expand Down Expand Up @@ -265,7 +265,7 @@ export class Router implements IRouter {
} catch (e) {
this.log.error(e);
// forward 401 (boom) error from ES
if (LegacyElasticsearchErrorHelpers.isNotAuthorizedError(e)) {
if (ElasticsearchErrorHelpers.isNotAuthorizedError(e)) {
return e;
}
return hapiResponseAdapter.toInternalError();
Expand Down

0 comments on commit 8d8f5b9

Please sign in to comment.