changeset 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 c669b5bfb8a0
children 10ccad665d57
files libervia/pages/_browser/bridge.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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()