feat: improve fatal error message
This commit is contained in:
parent
aa2eb30ad6
commit
1d77ad3194
1 changed files with 4 additions and 8 deletions
|
|
@ -153,13 +153,8 @@ async function loadConfigYaml(options: {
|
|||
}
|
||||
}
|
||||
|
||||
if (config) {
|
||||
isAssistantUnrolledNonNullable(config)
|
||||
? errors.push(...validateConfigYaml(config))
|
||||
: errors.push({
|
||||
fatal: true,
|
||||
message: "Assistant includes blocks that don't exist",
|
||||
});
|
||||
if (config && isAssistantUnrolledNonNullable(config)) {
|
||||
errors.push(...validateConfigYaml(config));
|
||||
}
|
||||
|
||||
if (errors?.some((error) => error.fatal)) {
|
||||
|
|
@ -223,7 +218,8 @@ async function configYamlToContinueConfig(options: {
|
|||
config: continueConfig,
|
||||
errors: [
|
||||
{
|
||||
message: "Found missing blocks in config.yaml",
|
||||
message:
|
||||
"Failed to load config due to missing blocks, see which blocks are missing below",
|
||||
fatal: true,
|
||||
},
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue