From 9fddaf53d5fa2762115ea8236c9c9ad22b76d8ef Mon Sep 17 00:00:00 2001 From: Marie <51697796+ijreilly@users.noreply.github.com> Date: Tue, 19 May 2026 14:09:31 +0200 Subject: [PATCH] Fix BUILDER_INTERNAL_SERVER_ERROR message (#20720) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The throw site was passing (code, message) to a constructor whose signature is (message, code), so exception.message ended up as the literal string "BUILDER_INTERNAL_SERVER_ERROR" and the real error.message was stored in exception.code where nothing reads it. Swapping the two args puts the real error message back into exception.message, which is the field Yoga's error handler copies into the GraphQL response's top-level message — and that's the field the CLI prints. --- .../workspace-migration-validate-build-and-run-service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/services/workspace-migration-validate-build-and-run-service.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/services/workspace-migration-validate-build-and-run-service.ts index ea258c054d..88be686107 100644 --- a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/services/workspace-migration-validate-build-and-run-service.ts +++ b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/services/workspace-migration-validate-build-and-run-service.ts @@ -373,8 +373,8 @@ export class WorkspaceMigrationValidateBuildAndRunService { .catch((error) => { this.logger.error(error); throw new WorkspaceMigrationV2Exception( - WorkspaceMigrationV2ExceptionCode.BUILDER_INTERNAL_SERVER_ERROR, error.message, + WorkspaceMigrationV2ExceptionCode.BUILDER_INTERNAL_SERVER_ERROR, ); });