diff options
author | rahul | 2019-10-24 10:37:38 +0530 |
---|---|---|
committer | rahul | 2019-10-24 10:37:38 +0530 |
commit | e8eab16509a676c04f1cef56d09f9ff2fd603918 (patch) | |
tree | 3969c028bb9abb5344ad0b68d5237995ed2898ff | |
parent | 87ef6248be39816df8a0ef9327c91a4196236330 (diff) | |
download | nghdl-e8eab16509a676c04f1cef56d09f9ff2fd603918.tar.gz nghdl-e8eab16509a676c04f1cef56d09f9ff2fd603918.tar.bz2 nghdl-e8eab16509a676c04f1cef56d09f9ff2fd603918.zip |
display error on QMessageBox
-rwxr-xr-x | src/ngspice_ghdl.py | 4 |
1 files changed, 2 insertions, 2 deletions
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','''<b>Important Message.</b><br/><br/>This accepts only <b>.vhdl</b> file ''') - except: - QtGui.QMessageBox.about(self, 'Message','''<b>Error</b><br/><br/> select a <b>.vhdl</b> file ''') + except Exception as e: + QtGui.QMessageBox.about(self, 'Message','''<b>Error</b><br/><br/> ''' + str(e)) class FileRemover(QtGui.QWidget): |