From 99c7874089e3f0db17e0f31593cd10adf452c194 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 27 Sep 2009 18:17:05 +0200 Subject: Use the path string from the invalid_path exception --- cli/cli.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/cli.cxx') diff --git a/cli/cli.cxx b/cli/cli.cxx index 3a38782..9b2495d 100644 --- a/cli/cli.cxx +++ b/cli/cli.cxx @@ -39,9 +39,9 @@ int main (int argc, char* argv[]) generator g; g.generate (*unit, path); } - catch (semantics::invalid_path const&) + catch (semantics::invalid_path const& e) { - cerr << "error: '" << argv[1] << "' is not a valid filesystem path" + cerr << "error: '" << e.path () << "' is not a valid filesystem path" << endl; return 1; } -- cgit v1.1