diff options
author | chriseth <chris@ethereum.org> | 2017-09-19 16:25:01 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2017-09-22 21:19:50 +0800 |
commit | f28d40ef0b58ef502ad39d7c953b50fc50430b5e (patch) | |
tree | e3de5963fdebeb9c9d1956b5d6a3cce583cf03a8 /libdevcore/Whiskers.cpp | |
parent | 2530223ab5c470c01b7e684f33e1fdfa5f5f9590 (diff) | |
download | dexon-solidity-f28d40ef0b58ef502ad39d7c953b50fc50430b5e.tar dexon-solidity-f28d40ef0b58ef502ad39d7c953b50fc50430b5e.tar.gz dexon-solidity-f28d40ef0b58ef502ad39d7c953b50fc50430b5e.tar.bz2 dexon-solidity-f28d40ef0b58ef502ad39d7c953b50fc50430b5e.tar.lz dexon-solidity-f28d40ef0b58ef502ad39d7c953b50fc50430b5e.tar.xz dexon-solidity-f28d40ef0b58ef502ad39d7c953b50fc50430b5e.tar.zst dexon-solidity-f28d40ef0b58ef502ad39d7c953b50fc50430b5e.zip |
Provide template for whiskers error.
Diffstat (limited to 'libdevcore/Whiskers.cpp')
-rw-r--r-- | libdevcore/Whiskers.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libdevcore/Whiskers.cpp b/libdevcore/Whiskers.cpp index b0a4c755..a6db35c8 100644 --- a/libdevcore/Whiskers.cpp +++ b/libdevcore/Whiskers.cpp @@ -90,7 +90,13 @@ string Whiskers::replace( string tagName(_match[1]); if (!tagName.empty()) { - assertThrow(_parameters.count(tagName), WhiskersError, "Value for tag " + tagName + " not provided."); + assertThrow( + _parameters.count(tagName), + WhiskersError, + "Value for tag " + tagName + " not provided.\n" + + "Template:\n" + + _template + ); return _parameters.at(tagName); } else |