File tree 1 file changed +11
-0
lines changed
src/backend/storeManagers/hyperplay
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import { existsSync, rmSync } from 'graceful-fs'
22
22
import { ProjectMetaInterface } from '@valist/sdk/dist/typesShared'
23
23
import getPartitionCookies from 'backend/utils/get_partition_cookies'
24
24
import { DEV_PORTAL_URL } from 'common/constants'
25
+ import { captureException } from '@sentry/electron'
25
26
26
27
export async function getHyperPlayStoreRelease (
27
28
appName : string
@@ -486,6 +487,16 @@ export async function safeRemoveDirectory(
486
487
`Failed to remove directory ${ directory } on attempt ${ attempt } /${ maxRetries } , directory still exists` ,
487
488
LogPrefix . HyperPlay
488
489
)
490
+ captureException (
491
+ new Error ( `Failed to remove directory, directory still exists` ) ,
492
+ {
493
+ extra : {
494
+ directory,
495
+ attempts : attempt ,
496
+ method : 'safeRemoveDirectory'
497
+ }
498
+ }
499
+ )
489
500
} catch {
490
501
// Directory doesn't exist (access threw an error), removal succeeded
491
502
logInfo (
You can’t perform that action at this time.
0 commit comments