diff options
-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; } |