Explorar el Código

Add testing messages

Abdullah Almsaeed hace 8 años
padre
commit
f860f87c06
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      tripal_core/api/tripal_core.jobs.api.inc

+ 2 - 1
tripal_core/api/tripal_core.jobs.api.inc

@@ -287,8 +287,9 @@ function tripal_execute_job($job_id, $redirect = TRUE) {
 
   // set the end time for this job
   if ($job->end_time == 0) {
-    exec("drush trp-run-jobs --username=".$user->name." --root=".DRUPAL_ROOT."", $output, $return);
+    $o = exec("drush trp-run-jobs --username=".$user->name." --root=".DRUPAL_ROOT."", $output, $return);
     drupal_set_message(t(implode(" ", $output)));
+    drupal_set_message($o);
     drupal_set_message($job_id);
   }
   else {