Update error name

This commit is contained in:
Julien Malard-Adam
2025-02-04 12:12:09 -05:00
committed by GitHub
parent 41f015cb13
commit 28b3e807de

View File

@@ -196,7 +196,7 @@ const Sync = async ({ ipfs, log, events, onSynced, start, timeout }) => {
} catch (e) {
console.error(e)
peers.delete(peerId)
if (e.name === 'ERR_UNSUPPORTED_PROTOCOL') {
if (e.name === 'UnsupportedProtocolError') {
// Skip peer, they don't have this database currently
} else {
events.emit('error', e)