summaryrefslogtreecommitdiff
path: root/textual.cc
diff options
context:
space:
mode:
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;
}