Commit cbe03bd5 authored by Jonathon Duerig's avatar Jonathon Duerig
Browse files

Fixed bug in error message. If the user is using an hrn, use that instead of the undefined uuid.

parent e8cd2297
......@@ -636,12 +636,14 @@ sub Remove($)
if ($slice->UnRegister()) {
print STDERR "Could not delete $slice from clearinghouse!\n";
return GeniResponse->Create(GENIRESPONSE_ERROR, undef,
"$uuid could not be unregistered");
(defined($uuid)?$uuid:$hrn)
. " could not be unregistered");
}
if ($slice->Delete()) {
print STDERR "Could not delete $slice from SA!\n";
return GeniResponse->Create(GENIRESPONSE_ERROR, undef,
"$uuid could not be unregistered");
(defined($uuid)?$uuid:$hrn)
. " could not be unregistered");
}
return GeniResponse->Create(GENIRESPONSE_SUCCESS);
}
......
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