Explorar o código

[oozie] Provide the cause of the submission error to the user

Romain Rigaux %!s(int64=10) %!d(string=hai) anos
pai
achega
b99c29ecc2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      apps/oozie/src/oozie/views/editor2.py

+ 1 - 1
apps/oozie/src/oozie/views/editor2.py

@@ -404,7 +404,7 @@ def _submit_workflow(user, fs, jt, workflow, mapping):
     if 'Max retries exceeded with url' in str(detail):
       detail = '%s: %s' % (_('The Oozie server is not running'), detail)
     LOG.exception('Error submitting workflow: %s' % smart_str(detail))
-    raise PopupException(_("Error submitting workflow %s") % (workflow,), detail=detail)
+    raise PopupException(_("Error submitting workflow %s: %s") % (workflow, detail))
 
   return redirect(reverse('oozie:list_oozie_workflow', kwargs={'job_id': job_id}))