Error swallowed for ipfs get when sending output to /dev/null
justindotpub opened this issue · 0 comments
justindotpub commented
File this issue to the appropriate upstream project, or a PR.
# When we don't have anything under the CID, we get the "not found locally" error as expected
$ ipfsi 1 get QmWXCR7ZwcQpvzJA5fjkQMJTe2rwJgYUtoSxBXFZ3uBY1W --offline -o /dev/null
Error: block was not found locally (offline): ipld: could not find QmWXCR7ZwcQpvzJA5fjkQMJTe2rwJgYUtoSxBXFZ3uBY1W
# For this CID, I have some children but not all. With redirect to /dev/null there is no "not found locally" error
$ ipfsi 1 get QmZZ52hRLbWnE7BKvxxTyjG4sX2uWtyjgUgM2w8LUYrioz --offline -o /dev/null
Saving file(s) to /dev/null
46.42 KiB / 46.42 KiB [==========================================================================================] 100.00% 0s
# If I don't redirect to /dev/null I see the "not found locally" error after the download of the CIDs we have
$ ipfsi 1 get QmZZ52hRLbWnE7BKvxxTyjG4sX2uWtyjgUgM2w8LUYrioz --offline
Saving file(s) to QmZZ52hRLbWnE7BKvxxTyjG4sX2uWtyjgUgM2w8LUYrioz
46.42 KiB / 46.42 KiB [==========================================================================================] 100.00% 0s
Error: block was not found locally (offline): ipld: could not find QmUPqayeHDexr1nMjURxBLyEF7CAEckv5c9U5LmbBaYmem