packages/matman-crawler/asserts/nightmare-preload.js
function error(err) {
    if (!(err instanceof Error)) return err
    return {
        code: err.code,
        message: err.message,
        details: err.detail,
        stack: err.stack || ''
    }
}
function error(err) {
    if (!(err instanceof Error)) return err
    return {
        code: err.code,
        message: err.message,
        details: err.detail,
        stack: err.stack || ''
    }
}
function error ( err ) { if ( ! ( err instanceof Error ) ) return err return { code : err . code , message : err . message , details : err . detail , stack : err . stack || '' } }
Make errors serializeable
Make errors serializeable