Mercurial > libervia-web
diff libervia/pages/_browser/bridge.py @ 1477:b28025a7cc28
browser (bride): use `BridgeInternalError` for unmanaged errors:
This is to avoid confusion with a backend internal error.
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 21 Oct 2021 17:36:17 +0200 |
parents | 8998f01088ac |
children | 409d10211b20 |
line wrap: on
line diff
--- a/libervia/pages/_browser/bridge.py Wed Oct 20 17:17:21 2021 +0200 +++ b/libervia/pages/_browser/bridge.py Thu Oct 21 17:36:17 2021 +0200 @@ -23,7 +23,7 @@ else: print(f"bridge called failed: code: {xhr.response}, text: {xhr.statusText}") if errback is not None: - errback({"fullname": "InternalError", "message": xhr.statusText}) + errback({"fullname": "BridgeInternalError", "message": xhr.statusText}) def call(self, method_name, *args, callback, errback, **kwargs): xhr = window.XMLHttpRequest.new()