MCPcopy
hub / github.com/mailvelope/mailvelope / mapError

Function mapError

src/client-API/client-api.js:730–734  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

728}
729
730function mapError(obj) {
731 const error = new Error(obj.message);
732 error.code = obj.code;
733 return error;
734}
735
736function objError(error) {
737 if (error instanceof Error || typeof error === 'string') {

Callers 2

eventListenerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected