File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -19,9 +19,13 @@ export class NodeExceptionlessClient extends ExceptionlessClient {
19
19
const config = this . config ;
20
20
21
21
if ( configurationOrApiKey && ! this . _initialized ) {
22
- const storage = new LocalStorage ( undefined , new LocalStoragePolyfill ( process . cwd ( ) + '/.exceptionless' ) ) ;
23
- config . useLocalStorage = ( ) => storage ;
24
- config . services . storage = storage ;
22
+ try {
23
+ const storage = new LocalStorage ( undefined , new LocalStoragePolyfill ( process . cwd ( ) + '/.exceptionless' ) ) ;
24
+ config . useLocalStorage = ( ) => storage ;
25
+ config . services . storage = storage ;
26
+ } catch ( ex ) {
27
+ this . config . services . log . info ( `Error configuring localStorage polyfill: ${ ex instanceof Error ? ex . message : ex + '' } ` ) ;
28
+ }
25
29
26
30
config . addPlugin ( new NodeEnvironmentInfoPlugin ( ) ) ;
27
31
config . addPlugin ( new NodeGlobalHandlerPlugin ( ) ) ;
You can’t perform that action at this time.
0 commit comments