Love.js Consumption Error

One or more scripts ran too heavily and caused a consumption error.

enum LoveJSError: Error {
    case invalidClient
    case usingContentBlocker
    case blockInvade
}

func diagnoseError(err: LoveJSError) {
    switch err {
    case .invalidClient:
        return "The browser is an invalid client and cannot operate with love.js."
    default:
        return "Either a content blocker is enabled or love.js has been tampered with. Full details: \(err)"
    }
}

diagnoseError(err: window.incomingLoveJavaScriptError)