From 4605800c4e6e2ca82212a3462122a06729b1824b Mon Sep 17 00:00:00 2001 From: CJentzsch Date: Thu, 4 Jun 2015 10:40:04 +0200 Subject: [PATCH] add Debug info --- libethereum/Executive.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libethereum/Executive.cpp b/libethereum/Executive.cpp index d877d3187..c2830729d 100644 --- a/libethereum/Executive.cpp +++ b/libethereum/Executive.cpp @@ -101,9 +101,9 @@ void Executive::initialize(Transaction const& _transaction) m_totalCost = m_t.value() + m_gasCost; if (m_s.balance(m_t.sender()) < m_totalCost) { - clog(ExecutiveWarnChannel) << "Not enough cash: Require >" << m_totalCost << " Got" << m_s.balance(m_t.sender()); + clog(ExecutiveWarnChannel) << "Not enough cash: Require >" << m_totalCost << " Got" << m_s.balance(m_t.sender()) << "for sender: " << m_t.sender(); m_excepted = TransactionException::NotEnoughCash; - BOOST_THROW_EXCEPTION(NotEnoughCash() << RequirementError(m_totalCost, (bigint)m_s.balance(m_t.sender()))); + BOOST_THROW_EXCEPTION(NotEnoughCash() << RequirementError(m_totalCost, (bigint)m_s.balance(m_t.sender())) << errinfo_comment(m_t.sender().abridged())); } }