diff --git a/package.json b/package.json index 1e064d5..d238c69 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lambdatest/smartui-cli", - "version": "4.1.42", + "version": "4.1.43", "description": "A command line interface (CLI) to run SmartUI tests on LambdaTest", "files": [ "dist/**/*" diff --git a/src/lib/server.ts b/src/lib/server.ts index 854f1fb..e15bef1 100644 --- a/src/lib/server.ts +++ b/src/lib/server.ts @@ -294,10 +294,8 @@ export default async (ctx: Context): Promise timeoutDuration) { replyCode = 202; - replyBody = { - error: 'Request timed out, Snapshot still processing', - data: lastExternalResponse.data - }; + replyBody = lastExternalResponse.data; + replyBody.error = 'Request timed out, Snapshot still processing'; return reply.code(replyCode).send(replyBody); }