This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
Fail non-silently when things are unimplemented #1633
Labels
help wanted
Seeking public contribution on this issue
kind/bug
A bug in existing code (including security flaws)
P2
Medium: Good to have, but can wait until someone steps up
Version:
commit: ""
repo: 7
version: "0.32.3"
Platform:
uname -srvpoi
> Linux 4.15.0-33-generic IPFS Repo JavaScript Implementation #36~16.04.1-Ubuntu SMP Wed Aug 15 17:21:05 UTC 2018 x86_64 x86_64 GNU/LinuxType: Enhancement
Severity: Medium
Description:
files.add(blob, { chunker: 'rabin' })
fails silently by returning an empty array when running in browser. It would be immensely helpful for me if these kinds of silent failures were non-silent. As it is, I wasted 1 hour figuring out why this call was failing. If you throw "unimplemented errors" in a uniform way, it could also help newcomers find areas where they can help.The reason this is important to me is that I'm using IPFS to store some game state, and the game server can run either in-browser or on Node - using the same code.
Steps to reproduce the error:
files.add
using the rabin chunker.The text was updated successfully, but these errors were encountered: