Skip to content

Commit

Permalink
remove stacktrace work
Browse files Browse the repository at this point in the history
  • Loading branch information
Aschen committed Jan 17, 2021
1 parent bac7d5e commit fcdb2cb
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/protocols/abstract/Base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import { PendingRequest } from './PendingRequest';
import { JSONObject } from '../../types';
import { RequestPayload } from '../../types/RequestPayload';

const { hilightUserCode } = require('../../utils/stackTrace');

export abstract class KuzzleAbstractProtocol extends KuzzleEventEmitter {
private _pendingRequests: Map<string, PendingRequest>;
private _host: string;
Expand Down Expand Up @@ -147,8 +145,6 @@ Discarded request: ${JSON.stringify(request)}`));
error = response.error;
}

error.stack = error.stack.split('\n').map(hilightUserCode).join('\n');

this.emit('queryError', error, request);

if (request.action !== 'logout' && error.id === 'security.token.invalid') {
Expand Down

0 comments on commit fcdb2cb

Please sign in to comment.