diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2009-09-27 18:17:05 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2009-09-27 18:17:05 +0200 |
commit | 99c7874089e3f0db17e0f31593cd10adf452c194 (patch) | |
tree | e69e71302f1120a81618682ff9f20b89a4aa679d | |
parent | c5e49023abc9d4d1a348588aa7ce743f6af0cf41 (diff) | |
download | cli-99c7874089e3f0db17e0f31593cd10adf452c194.tar.gz cli-99c7874089e3f0db17e0f31593cd10adf452c194.tar.xz cli-99c7874089e3f0db17e0f31593cd10adf452c194.zip |
Use the path string from the invalid_path exception
-rw-r--r-- | cli/cli.cxx | 4 |
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; } |