Commit 7f7bf984 authored by Mathieu Giraud's avatar Mathieu Giraud
Browse files

js/app.js: error message when require.js fails on loading 'germline'

This usually occurs on a fresh install without 'make germline'.
Fixes #1667.
parent 7115bc91
...@@ -27,10 +27,19 @@ function loadAfterConf() { ...@@ -27,10 +27,19 @@ function loadAfterConf() {
// Then load views (otherwise that could generate some errors if // Then load views (otherwise that could generate some errors if
// some files are loaded before the views) // some files are loaded before the views)
require(["../view"], function() { require(["../view"], function() {
require(["../germline"],
function() { },
function(err)
{
alert("The Vidjil web application client may not properly installed: 'germline.js' is not found. Please run 'make germline'.");
exit()
}
)
require(["../compare", require(["../compare",
"../menu", "../menu",
"../dbscan", "../dbscan",
"../germline",
"../germline_builder", "../germline_builder",
"../segmenter", "../segmenter",
"../model_loader", "../model_loader",
......
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