@exodus/errors
v1.1.1
Published
Utilities for error handling in client code, such as sanitization
Downloads
9,394
Readme
@exodus/errors
Usage
import { sanitizeErrorMessage, parseStackTrace } from '@exodus/errors'
try {
// the devil's work
} catch (e) {
console.error(sanitizeErrorMessage(e.message))
sendToErrorTrackingServer(parseStackTrace(e))
}