Skip to content

Commit 4f755ad

Browse files
author
Luca Forstner
committed
moar comment
1 parent cec610c commit 4f755ad

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/browser/src/diagnose-sdk.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import { getCurrentScope } from '@sentry/core';
66
* Possible return values wrapped in a Promise:
77
* - `"no-client-active"` - There was no active client when the function was called. This possibly means that the SDK was not initialized yet.
88
* - `"sentry-unreachable"` - There was no active client when the function was called. This possibly means that the SDK was not initialized yet.
9+
*
10+
* If the function doesn't detect an issue it resolves to `undefined`.
911
*/
1012
export async function diagnoseSdk(): Promise<'no-client-active' | 'sentry-unreachable' | void> {
1113
const client = getCurrentScope().getClient();

0 commit comments

Comments
 (0)