summaryrefslogtreecommitdiff
path: root/textual.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-09-08 03:33:56 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-09-08 03:33:56 -0400
commit842359474e36d8406305b874e82c12594dbc154c (patch)
tree49f186fe2cdbc212430bf18dcde972a8b2c33198 /textual.cc
parent612e94ceaa1f063250b706530b9515ce77b32c59 (diff)
downloadfork-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.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/textual.cc b/textual.cc
index b066fdd0..8f231b5e 100644
--- a/textual.cc
+++ b/textual.cc
@@ -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;
}