mafintosh / mafintosh/hyperdb

Cannot find a way to catch Error: Another hypercore is stored here error

Open
#164 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
748
Forks
56
PR merge metrics
No merged PRs in 30d

Description

When creating a new database, if you erroneously try to create a new database over an existing one, you get `Error: Another hypercore is stored here`. However, I can find no way of catching this error so that I can handle it gracefully when using hyperdb.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the error while creating a new database over an existing one through hyperdb. Trace how the “Another hypercore is stored here” error is surfaced and determine what observable behavior would let callers catch it and handle the conflict gracefully.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.