diff options
author | John Wiegley <johnw@newartisans.com> | 2004-09-08 03:33:56 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2004-09-08 03:33:56 -0400 |
commit | 842359474e36d8406305b874e82c12594dbc154c (patch) | |
tree | 49f186fe2cdbc212430bf18dcde972a8b2c33198 /textual.cc | |
parent | 612e94ceaa1f063250b706530b9515ce77b32c59 (diff) | |
download | fork-ledger-842359474e36d8406305b874e82c12594dbc154c.tar.gz fork-ledger-842359474e36d8406305b874e82c12594dbc154c.tar.bz2 fork-ledger-842359474e36d8406305b874e82c12594dbc154c.zip |
optimize python iterations of entries, transactions; use exceptions more
Diffstat (limited to 'textual.cc')
-rw-r--r-- | textual.cc | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -576,11 +576,8 @@ unsigned int textual_parser_t::parse(std::istream& in, time_commodity->flags |= COMMODITY_STYLE_NOMARKET; } - if (errors > 0) { - std::ostringstream msg; - msg << "Errors parsing file '" << path << "'"; - throw error(msg.str()); - } + if (errors > 0) + throw error(std::string("Errors parsing file '") + path + "'"); return count; } |