Commit 746c9361 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Minor bug fix; if the virtual topology cannot be stored cause of a

regex failure, bail instead of proceeding.
parent 0e2e2997
...@@ -974,7 +974,10 @@ sub GetTicket($;$) ...@@ -974,7 +974,10 @@ sub GetTicket($;$)
} }
skiplinks: skiplinks:
$virtexperiment->Dump(); $virtexperiment->Dump();
$virtexperiment->Store(); if ($virtexperiment->Store()) {
$response = GeniResponse->Create(GENIRESPONSE_ERROR, undef);
goto bad;
}
# Must chdir to the work directory for the mapper. # Must chdir to the work directory for the mapper.
if (! chdir($slice_experiment->WorkDir())) { if (! chdir($slice_experiment->WorkDir())) {
......
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