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 b35d27e commit 50b6ee9Copy full SHA for 50b6ee9
src/ipfs-on-path/index.js
@@ -76,8 +76,13 @@ async function firstTime () {
76
// to sudo so the user doesn't get annoying prompts when running IPFS Desktop
77
// for the first time. Sets the option according to the success or failure of the
78
// procedure.
79
- const res = await run('install', { trySudo: false, failSilently: true })
80
- store.set(CONFIG_KEY, res)
+ try {
+ const res = await run('install', { trySudo: false, failSilently: true })
81
+ store.set(CONFIG_KEY, res)
82
+ } catch (err) {
83
+ logger.error(`[ipfs on path] unexpected error while no-sudo install: ${err.toString()}`)
84
+ store.set(CONFIG_KEY, false)
85
+ }
86
}
87
88
async function runWindows (script, { failSilently }) {
0 commit comments