浏览代码

HUE-3014 [oozie] Show better error message when user enters custom cron syntax for coordinator dataset

krish 10 年之前
父节点
当前提交
173c090b30
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      apps/oozie/src/oozie/models2.py

+ 2 - 2
apps/oozie/src/oozie/models2.py

@@ -2027,8 +2027,8 @@ class Dataset():
       elif self.coordinator.cron_frequency == '0 0 0 * *':
         frequency_unit = 'months'
       else:
-        raise PopupException(_('The frequency of the workflow parameter %s cannot be guessed from the frequency of the coordinator.'
-                               ' It so needs to be specified manually.'))
+        raise PopupException(_('The frequency of the workflow parameter "%s" cannot be guessed from the frequency of the coordinator.'
+                               ' It so needs to be specified manually.') % self.data['name'])
       frequency_number = 1
     else:
       frequency_unit = self.data['frequency_unit']