fix: better failed default config error

This commit is contained in:
Dallin Romney
2026-01-31 15:01:43 -08:00
parent b93bc47cf2
commit 6108875600

View File

@@ -377,7 +377,9 @@ async function loadDefaultConfig(
});
if (!resp.configResult.config) {
throw new Error("Failed to load default agent.");
throw new Error(
`Failed to load default agent. Body:\n${JSON.stringify(resp)}`,
);
}
let apiConfig = resp.configResult.config as AssistantUnrolled;
if (injectBlocks.length > 0) {