Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
fix: catch error
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos committed Jun 12, 2020
1 parent 7402344 commit f8d1c80
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/ipfs/src/core/components/start.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict'

const log = require('debug')('ipfs:components:start')
const Bitswap = require('ipfs-bitswap')
const multiaddr = require('multiaddr')
const get = require('dlv')
Expand Down Expand Up @@ -29,6 +30,8 @@ module.exports = ({
repo
}) => withTimeoutOption(async function start () {
const startPromise = defer()
startPromise.promise.catch((err) => log(err))

const { cancel } = apiManager.update({ start: () => startPromise.promise })

try {
Expand Down

0 comments on commit f8d1c80

Please sign in to comment.