/**
 * Extract a human-readable message from an unknown caught value.
 */
export function getErrorMessage(err) {
    return err instanceof Error ? err.message : String(err);
}
//# sourceMappingURL=error.js.map