MCPcopy Create free account
hub / github.com/CommE2E/comm / getMessageForException

Function getMessageForException

lib/utils/errors.js:95–107  ·  view source on GitHub ↗
(e: mixed)

Source from the content-addressed store, hash-verified

93}
94
95function getMessageForException(e: mixed): ?string {
96 if (typeof e === 'string') {
97 return e;
98 } else if (
99 e &&
100 typeof e === 'object' &&
101 e.message &&
102 typeof e.message === 'string'
103 ) {
104 return e.message;
105 }
106 return undefined;
107}
108
109export {
110 ExtendableError,

Callers 15

keyserverLogOutFunction · 0.90
useBaseLogOutFunction · 0.90
useIdentityLogOutFunction · 0.90
useSecondaryDeviceLogOutFunction · 0.90
useDeleteAccountFunction · 0.90
useIdentityPasswordLogInFunction · 0.90
useIdentityWalletLogInFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected