From b0671004b455de0877ec2c6098416974ad7029e7 Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Mon, 24 May 2021 09:43:57 +0530 Subject: [PATCH] success message with newline --- libs/remixd/src/services/hardhatClient.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/remixd/src/services/hardhatClient.ts b/libs/remixd/src/services/hardhatClient.ts index 7c2efd463a..225b973823 100644 --- a/libs/remixd/src/services/hardhatClient.ts +++ b/libs/remixd/src/services/hardhatClient.ts @@ -33,8 +33,9 @@ export class HardhatClient extends PluginClient { let result = '' let error = '' child.stdout.on('data', (data) => { - console.log('\x1b[32m%s\x1b[0m', `[Hardhat Compilation]: ${data.toString()}`) - result += data.toString() + const msg = `[Hardhat Compilation]: ${data.toString()}` + console.log('\x1b[32m%s\x1b[0m', msg) + result += msg + '\n' }) child.stderr.on('data', (err) => { console.log('\x1b[31m%s\x1b[0m', `[Hardhat Compilation]: ${err.toString()}`)