Skip to content
Snippets Groups Projects
Commit 2889b4b5 authored by Jean-Karim Heriche's avatar Jean-Karim Heriche
Browse files

Give meaningful error message when essential info is missing from config file.

parent a6d34cdc
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,12 @@ if(length(args) < 1 || !is.toml.file(args[1])) {
# Read TOML file and populate IDE variables
ide.config <- read.config(file = args[1])
}
if(is.null(ide.config$data$data_root) || ide.config$data$data_root == "") {
stop(paste0("data.data_root must be defined in config file ", args[1]))
}
if(is.null(ide.config$data$table_path) || ide.config$data$table_path == "") {
stop(paste0("data.table_path must be defined in config file ", args[1]))
}
shiny::runApp(ide.path,
host = "0.0.0.0",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment