Commit 95b0e701 authored by Leigh Stoller's avatar Leigh Stoller

Minor bug fix; need to pass REFUSED back to the web UI when trying

to do a lockdown.
parent e42f02eb
......@@ -2886,7 +2886,13 @@ sub DoLockdownInternal($$$$)
my $code = $response->code();
if ($code != GENIRESPONSE_SUCCESS) {
($errcode, $errmsg) = ResponseErrorMessage($agg, $response);
if ($code == GENIRESPONSE_REFUSED) {
$errcode = $code;
$errmsg = $response->error();
}
else {
($errcode, $errmsg) = ResponseErrorMessage($agg, $response);
}
next;
}
}
......
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