Config.get(...) should raise interface-datastore.errors.notFound #197
Labels
exp/novice
Someone with a little familiarity can pick up
kind/bug
A bug in existing code (including security flaws)
P2
Medium: Good to have, but can wait until someone steps up
status/ready
Ready to be worked
I am not 100% sure about this, but while working on integrating the
js-ipfs-repo-migrations
I stumbled on a case where I have expected toipfs-repo
throw aninterface-datastore.errors.notFound
error whenconfig.get()
won't find the required key.I now that
interface-datastore.errors
are related to datastores and this is only somehow related to it asipfs-repo.config
creates an abstraction layer on top of it. But it would be good to have some easy and clean way how to test for not found errors other thanerr.message.match('does not exist')
.The text was updated successfully, but these errors were encountered: