Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Is there a detailed description of the err parameter type in the callback function? #1402

Closed
xuruijing opened this issue Jun 20, 2018 · 1 comment

Comments

@xuruijing
Copy link

Many callback functions in the API have the err parameter, where is the type of this parameter described in detail? For example, hashcode does not exist or timeout error messages

@alanshaw
Copy link
Member

err objects are currently just the built in type Error. There is discussion and work in progress for adding error codes to messages so that they can be dealt with appropriately: https://github.com/ipfs/interface-ipfs-core/issues/300

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants