All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit 4a736167 authored by Leigh B Stoller's avatar Leigh B Stoller

Fix error reporting.

parent 560c93a7
......@@ -599,7 +599,16 @@ if ($retval) {
# Decode simple XML that is returned.
$parsed = simplexml_load_string($suexec_output);
if (isset($webtask_id)) {
$webtask = WebTask::Lookup($webtask_id);
if ($webtask) {
$parsed = simplexml_load_string($webtask->output());
else {
# We should always use a webtask.
$parsed = simplexml_load_string($suexec_output);
if (!$parsed) {
$errors["error"] = "Internal Error; please try again later.";
TBERROR("Could not parse XML output:\n$suexec_output\n", 0);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment