Skip to content

Commit 4b0188f

Browse files
committed
Update the error message
1 parent ae589b9 commit 4b0188f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/plug.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export class GlobalPlug implements Plug {
138138
'The specified app ID and the auto-detected app ID are conflicting. '
139139
+ 'There is no need to specify an app ID when using an application-specific tag. '
140140
+ 'Please try again omitting the "appId" option. '
141-
+ 'Read more on https://croct.help/sdk/js/conflicting-app-id',
141+
+ 'For help, see https://croct.help/sdk/js/conflicting-app-id',
142142

143143
);
144144
}
@@ -149,7 +149,7 @@ export class GlobalPlug implements Plug {
149149
throw new Error(
150150
'The app ID must be specified when it cannot be auto-detected. '
151151
+ 'Please try again specifying the "appId" option.'
152-
+ 'Read more on https://croct.help/sdk/js/missing-app-id',
152+
+ 'For help, see https://croct.help/sdk/js/missing-app-id',
153153
);
154154
}
155155

@@ -298,7 +298,7 @@ export class GlobalPlug implements Plug {
298298

299299
private get sdk(): SdkFacade {
300300
if (this.instance === undefined) {
301-
throw new Error('Croct is not plugged in. Read more on https://croct.help/sdk/js/not-plugged-in');
301+
throw new Error('Croct is not plugged in. For help, see https://croct.help/sdk/js/not-plugged-in');
302302
}
303303

304304
return this.instance;
@@ -334,7 +334,7 @@ export class GlobalPlug implements Plug {
334334

335335
public identify(userId: string): void {
336336
if (typeof userId !== 'string') {
337-
throw new Error('The user ID must be a string. Read more on https://croct.help/sdk/js/invalid-user-id');
337+
throw new Error('The user ID must be a string. For help, see https://croct.help/sdk/js/invalid-user-id');
338338
}
339339

340340
this.sdk.identify(userId);

0 commit comments

Comments
 (0)