Browse Source

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

krish 10 years ago
parent
commit
173c090
1 changed files with 2 additions and 2 deletions
  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 * *':
       elif self.coordinator.cron_frequency == '0 0 0 * *':
         frequency_unit = 'months'
         frequency_unit = 'months'
       else:
       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
       frequency_number = 1
     else:
     else:
       frequency_unit = self.data['frequency_unit']
       frequency_unit = self.data['frequency_unit']