diff --git a/packages/init/src/SliceMachineInitProcess.ts b/packages/init/src/SliceMachineInitProcess.ts index db94907130..dbbee5e38d 100644 --- a/packages/init/src/SliceMachineInitProcess.ts +++ b/packages/init/src/SliceMachineInitProcess.ts @@ -535,7 +535,7 @@ export class SliceMachineInitProcess { tryAgainCommand = `${tryAgainCommand} --repository=${this.context.repository.domain}`; } - await this.trackError(error.shortMessage); + await this.trackError(error); console.error( `\n\n${error.shortMessage}\n${error.stderr}\n\n${ logSymbols.error diff --git a/packages/init/src/lib/setupSentry.ts b/packages/init/src/lib/setupSentry.ts index d2fd8babc0..c35f7a5df9 100644 --- a/packages/init/src/lib/setupSentry.ts +++ b/packages/init/src/lib/setupSentry.ts @@ -19,5 +19,8 @@ export function setupSentry(): void { environment: isStableVersion ? import.meta.env.MODE || "production" : "alpha", + // Increase the default truncation length of 250 to 2500 (x10) + // to have enough details in Sentry + maxValueLength: 2_500, }); }