Commit d4417202 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Allow BusyResponse to add a message to indicate what is busy.

parent eb6db7d9
......@@ -114,10 +114,15 @@ sub MalformedArgsResponse($)
undef, "Malformed arguments to method");
}
sub BusyResponse($)
sub BusyResponse($;$)
{
my (undef,$resource) = @_;
$resource = "resource"
if (!defined($resource));
return GeniResponse->Create(GENIRESPONSE_BUSY,
undef, "resource is busy; try again later");
undef, "$resource is busy; try again later");
}
sub BadArgsResponse(;$)
......
Supports Markdown
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