def make_crash(report):
    """Return JSON-serializable crash details."""
    try:
        crash = report.longrepr.reprcrash
    except AttributeError:
        return {}
    return {
        'crash': {
            'path': crash.path,
            'lineno': crash.lineno,
            'message': crash.message,
        },
    }