Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error not being handled #838

Closed
joehand opened this issue Aug 4, 2017 · 0 comments
Closed

Error not being handled #838

joehand opened this issue Aug 4, 2017 · 0 comments

Comments

@joehand
Copy link
Collaborator

joehand commented Aug 4, 2017

Got an error trying to do a tricky sparse thing but it isn't getting handled properly:

❯ dat sync
Connecting to dat network...
/Users/joe/code/node_modules/dat/src/lib/archive.js:42
      if (err) return state.warnings.push(err.message)
                                    ^

TypeError: Cannot read property 'push' of undefined
    at /Users/joe/code/node_modules/dat/src/lib/archive.js:42:37
    at /Users/joe/code/node_modules/dat/node_modules/hyperdrive/index.js:541:55
    at /Users/joe/code/node_modules/dat/node_modules/append-tree/index.js:110:23
    at /Users/joe/code/node_modules/dat/node_modules/append-tree/index.js:362:10
    at /Users/joe/code/node_modules/dat/node_modules/append-tree/index.js:372:5
    at /Users/joe/code/node_modules/dat/node_modules/hypercore/index.js:120:15
    at apply (/Users/joe/code/node_modules/dat/node_modules/thunky/index.js:44:12)
    at _combinedTickCallback (internal/process/next_tick.js:102:11)
    at process._tickCallback (internal/process/next_tick.js:161:9)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant