Skip to content
Snippets Groups Projects
Commit c03c3f41 authored by Emmanuel Raviart's avatar Emmanuel Raviart
Browse files

Add error message when parameter file is invalid

parent 5106fb79
No related branches found
No related tags found
No related merge requests found
......@@ -104,6 +104,10 @@ function loadRawParameters(
rawParameter = rawParameterFromYaml(fs.readFileSync(nodePath, "utf-8")) as {
[key: string]: unknown
}
if (rawParameter === undefined) {
console.error(`Invalid parameter file at ${nodePath}`)
return undefined
}
rawParameter.file_path = path.join(
parametersRepository.parametersDir,
...relativeSplitPath,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment