Commit 1b9405f6 authored by Leigh B Stoller's avatar Leigh B Stoller

Minor bug fix. Better error message from GetImageData().

parent 79925fdf
......@@ -124,16 +124,14 @@ sub GetImageData($;$)
if (!defined($response)) {
$errormsg = "$msg RPC error";
goto bad;
}
elsif (defined($response->output())) {
$errormsg = "$msg " . $response->output();
goto bad;
}
else {
$errormsg = "$msg " . GENIRESPONSE_STRING($response->code());
goto bad;
}
goto bad;
}
return $response->value();
......@@ -146,7 +144,7 @@ sub GetImageData($;$)
if (!defined($response));
return GeniResponse->Create($response->code(),
$response->value(), $response->output());
$response->value(), $errormsg);
}
#
......
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