             case let .next(element):
                 relay.accept(element)
             case let .error(error):
-                let error = "Binding error to publish relay: \(error)"
-                #if DEBUG
-                    rxFatalError(error)
-                #else
-                    print(error)
-                #endif
+                rxFatalErrorInDebug("Binding error to publish relay: \(error)")
             case .completed:
                 break
             }

            case let .next(element):
                relay.accept(element)
            case let .error(error):
                let error = "Binding error to behavior relay: \(error)"
                #if DEBUG
                    rxFatalError(error)
                #else
                    print(error)
                #endif
            case .completed:
                break
            }

    */
    public func bind(onNext: @escaping (E) -> Void) -> Disposable {
        return subscribe(onNext: onNext, onError: { error in
            rxFatalErrorInDebug("Binding error: \(error)")
        })
    }
}
