summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrahul2019-10-24 10:37:38 +0530
committerrahul2019-10-24 10:37:38 +0530
commite8eab16509a676c04f1cef56d09f9ff2fd603918 (patch)
tree3969c028bb9abb5344ad0b68d5237995ed2898ff
parent87ef6248be39816df8a0ef9327c91a4196236330 (diff)
downloadnghdl-e8eab16509a676c04f1cef56d09f9ff2fd603918.tar.gz
nghdl-e8eab16509a676c04f1cef56d09f9ff2fd603918.tar.bz2
nghdl-e8eab16509a676c04f1cef56d09f9ff2fd603918.zip
display error on QMessageBox
-rwxr-xr-xsrc/ngspice_ghdl.py4
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):