Commit 9140cebc authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Change return code in sliverstatus; SEARCHFAILED if no such sliver.

parent 7ca8ea57
...@@ -805,7 +805,7 @@ sub SliverStatus($) ...@@ -805,7 +805,7 @@ sub SliverStatus($)
# #
my ($slice, $aggregate) = Credential2SliceAggregate($credential); my ($slice, $aggregate) = Credential2SliceAggregate($credential);
if (! (defined($slice) && defined($aggregate))) { if (! (defined($slice) && defined($aggregate))) {
return GeniResponse->Create(GENIRESPONSE_BADARGS, undef, return GeniResponse->Create(GENIRESPONSE_SEARCHFAILED, undef,
"No slice or aggregate here"); "No slice or aggregate here");
} }
if ($slice_urn ne $slice->urn()) { if ($slice_urn ne $slice->urn()) {
......
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