kopia lustrzana https://github.com/corrscope/corrscope
Show stack trace on GUI, when loading config fails (#218)
rodzic
3c422632c1
commit
98178d52ec
|
@ -225,7 +225,7 @@ class MainWindow(qw.QMainWindow, Ui_MainWindow):
|
|||
self.load_cfg(cfg, cfg_path)
|
||||
|
||||
except Exception as e:
|
||||
qw.QMessageBox.critical(self, "Error loading file", str(e))
|
||||
TracebackDialog(self).showMessage(format_stack_trace(e))
|
||||
return
|
||||
|
||||
def load_cfg(self, cfg: Config, cfg_path: Optional[Path]) -> None:
|
||||
|
|
Ładowanie…
Reference in New Issue