From f45a233c899d9bcd24d60f2070d094931ba71ee7 Mon Sep 17 00:00:00 2001 From: Tom Taylor Date: Tue, 2 Jul 2024 10:05:07 +0100 Subject: [PATCH] Update error data --- errors/errors.json | 2 +- lib/AdaptFrameworkBuild.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/errors/errors.json b/errors/errors.json index b8d971f..046c520 100644 --- a/errors/errors.json +++ b/errors/errors.json @@ -9,7 +9,7 @@ "FW_CLI_BUILD_FAILED": { "data": { "cmd": "The command that caused the error", - "message": "A detailed error message passed from adapt-cli" + "raw": "The raw error output" }, "description": "Framework build using the adapt-cli failed", "statusCode": 500 diff --git a/lib/AdaptFrameworkBuild.js b/lib/AdaptFrameworkBuild.js index a3fc76a..68c5838 100644 --- a/lib/AdaptFrameworkBuild.js +++ b/lib/AdaptFrameworkBuild.js @@ -201,7 +201,7 @@ class AdaptFrameworkBuild { }) } catch (e) { throw App.instance.errors.FW_CLI_BUILD_FAILED - .setData({ cmd: e.cmd, stderr: e.stderr }) + .setData({ cmd: e.cmd, raw: e.raw }) } } this.isPreview ? await this.createPreview() : await this.createZip()