Open aljones15 opened 3 years ago
There are multiple places in this library where there are similar error handling statements:
https://github.com/veres-one/did-veres-one/blob/69e371ec0a14ac645f6c498a012114b4edf19f26/lib/VeresOneClient.js#L117-L134
https://github.com/veres-one/did-veres-one/blob/69e371ec0a14ac645f6c498a012114b4edf19f26/lib/VeresOneClient.js#L187-L204
Create a helper function to handle them.
There are multiple places in this library where there are similar error handling statements:
https://github.com/veres-one/did-veres-one/blob/69e371ec0a14ac645f6c498a012114b4edf19f26/lib/VeresOneClient.js#L117-L134
https://github.com/veres-one/did-veres-one/blob/69e371ec0a14ac645f6c498a012114b4edf19f26/lib/VeresOneClient.js#L187-L204
Create a helper function to handle them.