Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Remove full memory dump for Loss/slippage protection #226

Merged
merged 1 commit into from
Jun 6, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ var tb = require('timebucket')
, abbreviate = require('number-abbreviate')
, readline = require('readline')

var nice_errors = new RegExp(/(slippage protection|loss protection)/)

module.exports = function container (get, set, clear) {
var c = get('conf')
return function (s) {
Expand Down Expand Up @@ -333,7 +335,9 @@ module.exports = function container (get, set, clear) {
if (_cb) {
_cb(err)
}
else {
else if (err.message.match(nice_errors)) {
console.error((err.message + ': ' + err.desc).red)
} else {
memDump()
console.error('\n')
console.error(err)
Expand Down