Skip to content

Commit

Permalink
fix: return error instead of throw (#2074)
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
  • Loading branch information
hacdias authored Apr 11, 2022
1 parent b0c17ec commit d389733
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/daemon/daemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,11 @@ module.exports = async function (opts) {
}

if (!isRemote) {
await checkPorts(ipfsd)
try {
await checkPorts(ipfsd)
} catch (err) {
return { err }
}
}

let errLogs = await startIpfsWithLogs(ipfsd)
Expand Down

0 comments on commit d389733

Please sign in to comment.