Elffuss BraidHub

kikocis/continue public

Merge pull request #6097 from continuedev/pe/error-text-fix

feat: improve fatal error message
Changesetc3e8fbcfb7526506b4a89aeeee51ce456f1cb5a6ebcbf53e3e66a591928a403e
AuthorNate Sesti <33237525+sestinj@users.noreply.github.com> · 2025-06-16 12:39 -07:00
CommitterGitHub <noreply@github.com> · 2025-06-16 12:39 -07:00
Parentse15cb339b492, 4318c2648afb

Browse the files at this changeset

1 file changed

modified core/config/yaml/loadYaml.ts +4 −8
@@ -153,13 +153,8 @@
153153 }
154154 }
155155
156- if (config) {
157- isAssistantUnrolledNonNullable(config)
158- ? errors.push(...validateConfigYaml(config))
159- : errors.push({
160- fatal: true,
161- message: "Assistant includes blocks that don't exist",
162- });
156+ if (config && isAssistantUnrolledNonNullable(config)) {
157+ errors.push(...validateConfigYaml(config));
163158 }
164159
165160 if (errors?.some((error) => error.fatal)) {
@@ -223,7 +218,8 @@
223218 config: continueConfig,
224219 errors: [
225220 {
226- message: "Found missing blocks in config.yaml",
221+ message:
222+ "Failed to load config due to missing blocks, see which blocks are missing below",
227223 fatal: true,
228224 },
229225 ],