We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10d964e commit 19a8793Copy full SHA for 19a8793
src/utils/daemon.js
@@ -17,13 +17,18 @@ async function cleanup (addr, path) {
17
18
logger.info(`[daemon] cleanup: ipfs repo fsck ${path}`)
19
let exec = findExecutable('go', app.getAppPath())
20
- execFileSync(exec, ['repo', 'fsck'], {
21
- env: {
22
- ...process.env,
23
- IPFS_PATH: path
24
- }
25
- })
26
- logger.info(`[daemon] cleanup: completed`)
+
+ try {
+ execFileSync(exec, ['repo', 'fsck'], {
+ env: {
+ ...process.env,
+ IPFS_PATH: path
+ }
27
+ })
28
+ logger.info('[daemon] cleanup: completed')
29
+ } catch (e) {
30
+ logger.error('[daemon] %v', e)
31
32
}
33
34
async function spawn ({ type, path, keysize }) {
0 commit comments