diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2009-09-19 10:46:32 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2009-09-19 10:46:32 +0200 |
commit | 50e741126a0840179b86cf2302905e30dad6f75f (patch) | |
tree | bb12606ed4fbe5f7034a41c6b0ed00c26dfd0271 /cutl/fs/path.txx | |
parent | 95cb46279d8bc2b8c5fa611bef50f138ebd20056 (diff) |
Add path string to the invalid_path exception
Diffstat (limited to 'cutl/fs/path.txx')
-rw-r--r-- | cutl/fs/path.txx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cutl/fs/path.txx b/cutl/fs/path.txx index caff259..ff5095b 100644 --- a/cutl/fs/path.txx +++ b/cutl/fs/path.txx @@ -70,7 +70,7 @@ namespace cutl operator/ (basic_path<C> const& r) { if (r.path_.empty ()) - throw invalid_path (); + throw invalid_basic_path<C> (r.path_); basic_path<C> x (*this); x.path_ += '/'; @@ -83,7 +83,7 @@ namespace cutl init (bool internal) { if (!internal && path_.empty ()) - throw invalid_path (); + throw invalid_basic_path<C> (path_); // Strip trailing slashes. This way empty string represents // root directory. |