Commit c3ad7206 authored by Leigh B Stoller's avatar Leigh B Stoller

Handle REFUSED in maxextension.

parent d0cef8f0
...@@ -2002,7 +2002,17 @@ sub DoMaxExtensionInternal($$) ...@@ -2002,7 +2002,17 @@ sub DoMaxExtensionInternal($$)
my $code = $response->code(); my $code = $response->code();
if ($code) { if ($code) {
($errcode,$errmsg) = ResponseErrorMessage($aggregate, $response); if ($code == GENIRESPONSE_REFUSED) {
# We want the user to see REFUSED.
$errmsg = "No extension possible at ".
$aggregate->GetAptAggregate()->name() . ": " .
$response->error();
$errcode = $code;
}
else {
($errcode,$errmsg) =
ResponseErrorMessage($aggregate, $response);
}
goto bad; goto bad;
} }
my $max = str2time($result); my $max = str2time($result);
......
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