Skip to content

Commit

Permalink
Added exit code check
Browse files Browse the repository at this point in the history
  • Loading branch information
ubuntolog committed Dec 8, 2023
1 parent 74bf954 commit 4f888f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GSvarServer/ServerController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ HttpResponse ServerController::annotateVariant(const HttpRequest& request)
process.start("php", QStringList() << megsap_root + "/src/NGS/an_vep.php" << "-in" << input_vcf << "-out" << an_vep_out);
bool success = process.waitForFinished(-1);
Log::error("Exit code = " + QString::number(process.exitCode()));
if (!success)
if (!success || process.exitCode()>0)
{
return HttpResponse(ResponseStatus::INTERNAL_SERVER_ERROR, HttpUtils::detectErrorContentType(request.getHeaderByName("User-Agent")), EndpointManager::formatResponseMessage(request, QString("Error while executing an_vep.php: " + process.readAll())));
}
Expand Down

0 comments on commit 4f888f3

Please sign in to comment.