Avaiga / taipy-gui

Graphical User Interface generator for Taipy
Apache License 2.0
60 stars 20 forks source link

Better log a back-end exception raised to help user debug its code #339

Closed jrobinAV closed 2 years ago

jrobinAV commented 2 years ago

When a back-end function (method delete in the following example) raises an exception, the Gui does not propagate the error nor the error type.

def delete(state):
    tp.delete(state.selected_scenario)

Log in the console:

C:\Users\jeanrobin\.virtualenvs\milestone\lib\site-packages\taipy\gui\gui.py:726: UserWarning: on_action: 'delete' function invocation exception: 
  warnings.warn(f"on_action: '{action_function.__name__}' function invocation exception: {e}")
jrobinAV commented 2 years ago

@FabienLelaquais I am tagging you so you are notified about the ticket. :)