MCPcopy Create free account
hub / github.com/Noumena-Network/code / getGrowthBookInitErrorMessage

Function getGrowthBookInitErrorMessage

src/services/analytics/growthbook.ts:546–552  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

544}
545
546function getGrowthBookInitErrorMessage(error: unknown): string {
547 return error instanceof Error
548 ? error.message
549 : error
550 ? String(error)
551 : 'unknown'
552}
553
554function isInvalidGrowthBookClientKey(error: unknown): boolean {
555 return getGrowthBookInitErrorMessage(error).includes('Invalid SDK key')

Callers 2

finalizeInitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected