File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -62,8 +62,7 @@ export const startExecutionTrace = async (name: string): Promise<Trace> => {
62
62
const id = await NativeAPM . startExecutionTrace ( name , timestamp ) ;
63
63
64
64
if ( ! id ) {
65
- console . error ( TRACE_NOT_STARTED_APM_NOT_ENABLED ) ;
66
- return Promise . reject ( TRACE_NOT_STARTED_APM_NOT_ENABLED ) ;
65
+ throw new Error ( TRACE_NOT_STARTED_APM_NOT_ENABLED ) ;
67
66
}
68
67
69
68
return new Trace ( id , name ) ;
Original file line number Diff line number Diff line change @@ -381,7 +381,7 @@ export const setReproStepsConfig = (config: ReproConfig) => {
381
381
*/
382
382
export const setUserAttribute = ( key : string , value : string ) => {
383
383
if ( ! key || typeof key !== 'string' || typeof value !== 'string' ) {
384
- console . error ( 'Invalid param, Expected String ' ) ;
384
+ console . error ( 'IBG-RN: Expected key and value passed to setUserAttribute to be of type string ' ) ;
385
385
return ;
386
386
}
387
387
NativeInstabug . setUserAttribute ( key , value ) ;
@@ -405,7 +405,8 @@ export const getUserAttribute = async (key: string): Promise<string | null> => {
405
405
*/
406
406
export const removeUserAttribute = ( key : string ) => {
407
407
if ( ! key || typeof key !== 'string' ) {
408
- console . error ( 'Invalid param, Expected String' ) ;
408
+ console . error ( 'IBG-RN: Expected the key passed to removeUserAttribute to be of type string' ) ;
409
+
409
410
return ;
410
411
}
411
412
NativeInstabug . removeUserAttribute ( key ) ;
You can’t perform that action at this time.
0 commit comments