File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -55,12 +55,12 @@ def msg_warning(exception, widget = None):
5555def _msg (msg_type , msg_title , exception , widget = None ):
5656
5757 if not isinstance (exception , Exception ):
58- raise QgistTypeError (' exception must be of type Exception' )
58+ raise QgistTypeError (translate ( 'global' , '" exception" must be of type Exception. (msg)' ) )
5959 if not isinstance (widget , QWidget ) and widget is not None :
60- raise QgistTypeError (' widget must be of type QWidget or None' )
60+ raise QgistTypeError (translate ( 'global' , '" widget" must be of type QWidget or None. (msg)' ) )
6161
6262 if len (exception .args ) == 0 :
63- msg = translate ('global' , 'Internal error. No description can be provided. Please file a bug.' )
63+ msg = translate ('global' , 'Internal error. No description can be provided. Please file a bug. (msg) ' )
6464 else :
6565 msg = str (exception .args [0 ])
6666
You can’t perform that action at this time.
0 commit comments