summaryrefslogtreecommitdiff
path: root/cli/cli.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-09-27 18:17:05 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-09-27 18:17:05 +0200
commit99c7874089e3f0db17e0f31593cd10adf452c194 (patch)
treee69e71302f1120a81618682ff9f20b89a4aa679d /cli/cli.cxx
parentc5e49023abc9d4d1a348588aa7ce743f6af0cf41 (diff)
Use the path string from the invalid_path exception
Diffstat (limited to 'cli/cli.cxx')
-rw-r--r--cli/cli.cxx4
1 files changed, 2 insertions, 2 deletions
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;
}