MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / formatValidationErrors

Function formatValidationErrors

src/world/validate.ts:195–202  ·  view source on GitHub ↗
(errors: string[])

Source from the content-addressed store, hash-verified

193
194// Re-exported for use in loader/saver error formatting.
195export function formatValidationErrors(errors: string[]): string {
196 if (errors.length === 0) return '';
197 let out = 'Validation failed with ' + errors.length + ' error(s):\n';
198 for (let i = 0; i < errors.length; i++) {
199 out = out + ' - ' + errors[i] + '\n';
200 }
201 return out;
202}

Callers 3

formatSaveErrorFunction · 0.90
loadPrefabFunction · 0.90
loadWorldFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected