Skip to content

Commit

Permalink
Improved logging on eos transactions that would produce errors in ver…
Browse files Browse the repository at this point in the history
…bose log level.
  • Loading branch information
dallasjohnson committed Feb 8, 2020
1 parent ee10568 commit 40b7c8f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/eosManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ export class EOSManager {
})
.catch(error => {
logOutput(chalk.red('Threw error: ') + error);
console.log(
chalk.cyan('Payload causing the above error: ') + JSON.stringify(transaction, null, 4)
);
throw error;
});
};
Expand Down

0 comments on commit 40b7c8f

Please sign in to comment.