From 4a40c815726823ab4cd08983c7ed9a8ada3243d3 Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 7 Dec 2017 14:46:36 +0100 Subject: [PATCH] add log --- src/recorder.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/recorder.js b/src/recorder.js index 4ca816640e..6070c1b611 100644 --- a/src/recorder.js +++ b/src/recorder.js @@ -170,6 +170,7 @@ class Recorder { run (records, accounts, options, abis, newContractFn) { var self = this self.setListen(false) + self._api.logMessage('Running transactions ...') async.eachSeries(records, function (tx, cb) { var record = self.resolveAddress(tx.record, accounts, options) var abi = abis[tx.record.abi] @@ -199,6 +200,7 @@ class Recorder { self._api.udapp().rerunTx(record, function (err, txResult) { if (err) { console.error(err) + self._api.logMessage(err + '. Execution stopped') } else { var address = executionContext.isVM() ? txResult.result.createdAddress : txResult.result.contractAddress if (address) {