             return "notSupported"
         case .invalidDriverResponse(_):
             return "invalidDriverResponse"
-        case .connectionClosed:
+        case .connectionClosed(_):
             return "connectionClosed"
         case .unspecified(_):
             return "unspecified"

            return "Not supported: \(string)"
        case .invalidDriverResponse(let string):
            return "Invalid driver response: \(string)"
        case .connectionClosed:
            return "Connection is closed"
        case .unspecified(let error):
            return "\(error)"
        }

public enum QueryError: Error {
    case notSupported(String)
    case invalidDriverResponse(String)
    case connectionClosed(Error)
    case unspecified(Error)
}

