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 9819b126 authored by David Johnson's avatar David Johnson

Give a better error when a server returns nil.

parent 044a2ca8
......@@ -291,7 +291,11 @@ sub CallMethodHTTP($$$) {
# Python servers seem to return faults in structs, not as <fault> elements.
# Sigh.
if ($goo->value()->is_fault()
if (!ref($goo)) {
print STDERR "Error in XMLRPC parse: $goo\n";
return undef;
}
elsif ($goo->value()->is_fault()
|| (ref($goo->value()) && UNIVERSAL::isa($goo->value(),"HASH")
&& exists($goo->value()->{'faultCode'}))) {
$code = $goo->value()->{"faultCode"}->value;
......
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