Skip to content

Config.get(...) should raise interface-datastore.errors.notFound  #197

Closed
@AuHau

Description

@AuHau

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 to ipfs-repo throw an interface-datastore.errors.notFound error when config.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 as ipfs-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 than err.message.match('does not exist').

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium: Good to have, but can wait until someone steps upexp/noviceSomeone with a little familiarity can pick upkind/bugA bug in existing code (including security flaws)status/readyReady to be worked

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions