@@ -74,19 +74,19 @@ class ui_manager_class(ui_manager_base_class):
7474 def __init__ (self , plugin_root_fld , mainwindow , combobox_workbench , combobox_workbench_update , fsm ):
7575
7676 if not isinstance (plugin_root_fld , str ):
77- raise QgistTypeError (translate ('global' , 'plugin_root_fld must be str' ))
77+ raise QgistTypeError (translate ('global' , '" plugin_root_fld" must be str. (ui_manager) ' ))
7878 if not os .path .exists (plugin_root_fld ):
79- raise QgistValueError (translate ('global' , 'plugin_root_fld must exists' ))
79+ raise QgistValueError (translate ('global' , '" plugin_root_fld" must exists. (ui_manager) ' ))
8080 if not os .path .isdir (plugin_root_fld ):
81- raise QgistValueError (translate ('global' , 'plugin_root_fld must be a directory' ))
81+ raise QgistValueError (translate ('global' , '" plugin_root_fld" must be a directory. (ui_manager) ' ))
8282 if not isinstance (mainwindow , QMainWindow ):
83- raise QgistTypeError (translate ('global' , 'mainwindow must be a QGis mainwindow' ))
83+ raise QgistTypeError (translate ('global' , '" mainwindow" must be a QGIS mainwindow. (ui_manager) ' ))
8484 if not isinstance (combobox_workbench , QComboBox ):
85- raise QgistTypeError (translate ('global' , 'combobox_workbench must be a QGis mainwindow' ))
85+ raise QgistTypeError (translate ('global' , '" combobox_workbench" must be a QGis mainwindow. (ui_manager) ' ))
8686 if not hasattr (combobox_workbench_update , '__call__' ):
87- raise QgistTypeError (translate ('global' , 'combobox_workbench_update must be callable' ))
87+ raise QgistTypeError (translate ('global' , '" combobox_workbench_update" must be callable. (ui_manager) ' ))
8888 if not isinstance (fsm , dtype_fsm_class ):
89- raise QgistTypeError (translate ('global' , 'fsm must be a workbench finite state machine' ))
89+ raise QgistTypeError (translate ('global' , '" fsm" must be a workbench finite state machine. (ui_manager) ' ))
9090
9191 super ().__init__ (plugin_root_fld )
9292
0 commit comments