diff --git a/packages/typedoc-transformer/lib/processor.ts b/packages/typedoc-transformer/lib/processor.ts index ec5e5e5bc..b4a582c45 100644 --- a/packages/typedoc-transformer/lib/processor.ts +++ b/packages/typedoc-transformer/lib/processor.ts @@ -408,8 +408,8 @@ export class Processor extends AsyncTransform { const [g, err] = await Group.from(o) console.log(`Group ${g.toDescription()} created`) - if (err) { - console.error(`Group created with errors\n${err}`) + for (const e of errors.split(err)) { + console.error(`Group created with an error: ${e}`) } return g @@ -419,8 +419,8 @@ export class Processor extends AsyncTransform { const [d, err] = await Declaration.from(o) console.log(`Declaration ${d.toDescription()} created`) - if (err) { - console.error(`Declaration created with errors\n${err}`) + for (const e of errors.split(err)) { + console.error(`Declaration created with an error: ${e}`) } d.trail.virtual = this.#v.trail @@ -433,8 +433,8 @@ export class Processor extends AsyncTransform { const [f, err] = await Fragment.from(o) console.log(`Fragment ${f.toDescription()} created`) - if (err) { - console.error(`Fragment created with errors\n${err}`) + for (const e of errors.split(err)) { + console.error(`Fragment created with an error: ${e}`) } f.trail.virtual = this.#v.trail