Index: io_stream.cc =================================================================== RCS file: /cvs/cygwin-apps/setup/io_stream.cc,v retrieving revision 2.17 diff -u -p -r2.17 io_stream.cc --- io_stream.cc 5 May 2005 22:48:35 -0000 2.17 +++ io_stream.cc 14 Oct 2005 04:55:53 -0000 @@ -99,7 +99,8 @@ io_stream::open (String const &name, Str { IOStreamProvider const *p = findProvider (name); if (!p) - throw new invalid_argument ("URL Scheme not registered!"); + throw new invalid_argument ((String("URL Scheme for '")+ + name+"' not registered!").c_str()); io_stream *rv = p->open (&name.c_str()[p->key.size()], mode); if (!rv->error ()) return rv; @@ -112,7 +113,8 @@ io_stream::mkpath_p (path_type_t isadir, { IOStreamProvider const *p = findProvider (name); if (!p) - throw new invalid_argument ("URL Scheme not registered!"); + throw new invalid_argument ((String("URL Scheme for '")+ + name+"' not registered!").c_str()); return p->mkdir_p (isadir, &name.c_str()[p->key.size()]); } @@ -122,7 +124,8 @@ io_stream::remove (String const &name) { IOStreamProvider const *p = findProvider (name); if (!p) - throw new invalid_argument ("URL Scheme not registered!"); + throw new invalid_argument ((String("URL Scheme for '")+ + name+"' not registered!").c_str()); return p->remove (&name.c_str()[p->key.size()]); } @@ -134,8 +137,12 @@ io_stream::mklink (String const &from, S << endLog; IOStreamProvider const *fromp = findProvider (from); IOStreamProvider const *top = findProvider (to); - if (!fromp || !top) - throw new invalid_argument ("URL Scheme not registered!"); + if (!fromp) + throw new invalid_argument ((String("URL Scheme for '")+ + from+"' not registered!").c_str()); + if (!top) + throw new invalid_argument ((String("URL Scheme for '")+ + to+"' not registered!").c_str()); if (fromp != top) throw new invalid_argument ("Attempt to link across url providers."); return fromp->mklink (&from.c_str()[fromp->key.size()], @@ -198,8 +205,12 @@ io_stream::move (String const &from, Str { IOStreamProvider const *fromp = findProvider (from); IOStreamProvider const *top = findProvider (to); - if (!fromp || !top) - throw new invalid_argument ("URL Scheme not registered!"); + if (!fromp) + throw new invalid_argument ((String("URL Scheme for '")+ + from+"' not registered!").c_str()); + if (!top) + throw new invalid_argument ((String("URL Scheme for '")+ + to+"' not registered!").c_str()); if (fromp != top) return io_stream::move_copy (from, to); return fromp->move (&from.c_str()[fromp->key.size()], @@ -235,7 +246,8 @@ io_stream::exists (String const &name) { IOStreamProvider const *p = findProvider (name); if (!p) - throw new invalid_argument ("URL Scheme not registered!"); + throw new invalid_argument ((String("URL Scheme for '")+ + name+"' not registered!").c_str()); return p->exists (&name.c_str()[p->key.size()]); }