浏览代码

Add testing messages

Abdullah Almsaeed 8 年之前
父节点
当前提交
f860f87c06
共有 1 个文件被更改,包括 2 次插入1 次删除
  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 {