Commit fccd4e04 authored by Leigh Stoller's avatar Leigh Stoller

Minor fix to error return code to avoid email to tbops

parent 9fa5002c
......@@ -717,14 +717,14 @@ sub SliceMaxExtension($)
if (Reservation->MaxSliceExtension($slice, \$max, \$reserror, 3600)) {
Reservation->FlushAll();
return GeniResponse->Create(GENIRESPONSE_ERROR, undef, $reserror);
return GeniResponse->Create(GENIRESPONSE_REFUSED, undef, $reserror);
}
Reservation->FlushAll();
my $blob = {"maxextension" => TBDateStringGMT($max)};
my $project = Project->Lookup($experiment->pid());
if (!defined($project)) {
return GeniResponse->Create(GENIRESPONSE_REFUSED, undef,
return GeniResponse->Create(GENIRESPONSE_ERROR, undef,
"Cannot find project for experiment");
}
......
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