Skip to content

Commit

Permalink
fix: throw error when fail to load SWAConfigSchema (#763)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjk7989 authored Nov 2, 2023
1 parent 9f38398 commit f07e351
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/utils/user-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export async function validateRuntimeConfigAndGetData(filepath: string): Promise
logger.silly(`Loading staticwebapp.config.json schema...`);
const schema = await loadSWAConfigSchema();
if (!schema) {
logger.warn(`WARNING: Failed to load staticwebapp.config.json schema. Continuing without validation!`);
logger.error(`Failed to load staticwebapp.config.json schema. Continuing without validation!`, true);
return null;
}

Expand Down

0 comments on commit f07e351

Please sign in to comment.