mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-07 17:28:02 +08:00
Bring back error-prettifyer removed in f6b707d85f
This commit is contained in:
parent
3dca025f05
commit
f129f24bd7
@ -332,6 +332,15 @@ The output of blocks happens in strict DAG-traversal, first-seen, order.
|
||||
return err
|
||||
}
|
||||
|
||||
return <-errCh
|
||||
err = <-errCh
|
||||
|
||||
// minimal user friendliness
|
||||
if err != nil &&
|
||||
!node.IsOnline &&
|
||||
err.Error() == "merkledag: not found" {
|
||||
err = fmt.Errorf("%s (currently offline, perhaps retry after attaching to the network)", err)
|
||||
}
|
||||
|
||||
return err
|
||||
},
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user