Commit 47a3e1ba authored by Leigh Stoller's avatar Leigh Stoller

Never return undef from CallMethod, always return a response structure

with a valid error code. Makes handling in the caller more consistent.
parent 98f55a64
...@@ -182,8 +182,9 @@ sub CallMethod($$$@) ...@@ -182,8 +182,9 @@ sub CallMethod($$$@)
} }
else { else {
print STDERR print STDERR
"Could not determine what version of FreeBSD you are running!\n"; "Could not determine what version of FreeBSD you are running!\n";
return undef; return GeniResponse->new(GENIRESPONSE_RPCERROR, -1,
"Could not determine what version of FreeBSD you are running!");
} }
if ($FBSD_MAJOR >= 8) { if ($FBSD_MAJOR >= 8) {
......
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