From e8eab16509a676c04f1cef56d09f9ff2fd603918 Mon Sep 17 00:00:00 2001 From: rahul Date: Thu, 24 Oct 2019 10:37:38 +0530 Subject: display error on QMessageBox --- src/ngspice_ghdl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/ngspice_ghdl.py b/src/ngspice_ghdl.py index 0a9e88c..0bb15a4 100755 --- a/src/ngspice_ghdl.py +++ b/src/ngspice_ghdl.py @@ -277,8 +277,8 @@ class Mainwindow(QtGui.QWidget): self.runMakeInstall() else: QtGui.QMessageBox.about(self,'Message','''Important Message.

This accepts only .vhdl file ''') - except: - QtGui.QMessageBox.about(self, 'Message','''Error

select a .vhdl file ''') + except Exception as e: + QtGui.QMessageBox.about(self, 'Message','''Error

''' + str(e)) class FileRemover(QtGui.QWidget): -- cgit