Commit 4929311d authored by Matthieu Muffato's avatar Matthieu Muffato
Browse files

Merge branch 'db_version/56' into db_version/62

* db_version/56:
  Let the user know if graphviz has failed (even though we can't capture stderr)
parents 041d0485 6c8bc792
......@@ -52,8 +52,13 @@ $dbConn->load_collections();
eval {
my $graph = formAnalyses($dbConn);
my $html = formResponse($dbConn);
$response->out_msg({"graph" => $graph, "html" => $html});
if ($graph) {
my $html = formResponse($dbConn);
$response->out_msg({"graph" => $graph, "html" => $html});
} else {
$response->err_msg('GraphViz failed to generate a diagram');
$response->status("FAILED");
}
};
if ($@) {
$response->err_msg("I have problems retrieving data from the database:$@");
......
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