summaryrefslogtreecommitdiff
path: root/src/context.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/context.h')
-rw-r--r--src/context.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/context.h b/src/context.h
index 45bb9990..09734b3e 100644
--- a/src/context.h
+++ b/src/context.h
@@ -103,6 +103,9 @@ public:
void warning(const string& what) const {
warning_func(location() + what);
}
+ void warning(const boost::format& what) const {
+ warning_func(location() + string(what.str()));
+ }
};
inline parse_context_t open_for_reading(const path& pathname,
@@ -112,7 +115,7 @@ inline parse_context_t open_for_reading(const path& pathname,
if (! exists(filename))
throw_(std::runtime_error,
- _("Cannot read journal file %1") << filename);
+ _f("Cannot read journal file %1%") % filename);
#if BOOST_VERSION >= 104600 && BOOST_FILESYSTEM_VERSION >= 3
path parent(filesystem::absolute(pathname, cwd).parent_path());