Skip to content

Commit 44f62db

Browse files
rolodatokhvn26
andauthored
Propagate getIdentityFlags error
Co-authored-by: Kim Gustyr <[email protected]>
1 parent 0e8fa1a commit 44f62db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ export class Flagsmith {
215215
return await this.getIdentityFlagsFromApi(identifier, traits, transient);
216216
} catch (error) {
217217
if (!this.defaultFlagHandler) {
218-
throw new Error('getIdentityFlags failed and no default flag handler was provided')
218+
throw new Error('getIdentityFlags failed and no default flag handler was provided', { cause: error })
219219
}
220220
this.logger.error(error, 'getIdentityFlags failed');
221221
return new Flags({

0 commit comments

Comments
 (0)