@@ -12,7 +12,6 @@ import {
1212 withMonitor ,
1313} from '../../src' ;
1414import type { BaseClient , Client } from '../../src/client' ;
15- import { _makeInternalError } from '../../src/client' ;
1615import * as integrationModule from '../../src/integration' ;
1716import type { Envelope , ErrorEvent , Event , SpanJSON , TransactionEvent } from '../../src/types-hoist' ;
1817import * as loggerModule from '../../src/utils-hoist/logger' ;
@@ -1294,7 +1293,7 @@ describe('Client', () => {
12941293 expect ( beforeSend ) . toHaveBeenCalled ( ) ;
12951294 expect ( TestClient . instance ! . event ) . toBeUndefined ( ) ;
12961295 expect ( loggerWarnSpy ) . toBeCalledWith (
1297- _makeInternalError ( 'before send for type `error` must return `null` or a valid event.' ) . message ,
1296+ 'before send for type `error` must return `null` or a valid event.' ,
12981297 ) ;
12991298 }
13001299 } ) ;
@@ -1315,7 +1314,7 @@ describe('Client', () => {
13151314 expect ( beforeSendTransaction ) . toHaveBeenCalled ( ) ;
13161315 expect ( TestClient . instance ! . event ) . toBeUndefined ( ) ;
13171316 expect ( loggerWarnSpy ) . toBeCalledWith (
1318- _makeInternalError ( 'before send for type `transaction` must return `null` or a valid event.' ) . message ,
1317+ 'before send for type `transaction` must return `null` or a valid event.' ,
13191318 ) ;
13201319 }
13211320 } ) ;
@@ -1688,9 +1687,9 @@ describe('Client', () => {
16881687 originalException : exception ,
16891688 } ) ;
16901689 expect ( loggerWarnSpy ) . toBeCalledWith (
1691- _makeInternalError (
1690+
16921691 `Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${ exception } ` ,
1693- ) . message ,
1692+ ,
16941693 ) ;
16951694 } ) ;
16961695
0 commit comments