Explorar el Código

Don't show stack trace in window alert (#71)

Nikhil Rao hace 2 años
padre
commit
b13adbbbc5
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      pynecone/state.py

+ 3 - 1
pynecone/state.py

@@ -358,7 +358,9 @@ class State(Base, ABC):
         except:
             error = traceback.format_exc()
             print(error)
-            return StateUpdate(events=[window_alert(error)])
+            return StateUpdate(
+                events=[window_alert("An error occurred. See logs for details.")]
+            )
 
         # Fix the returned events.
         events = utils.fix_events(events, event.token)