[Saga-devel] saga SVN commit 3397: /trunk/adaptors/default/cpr/
hkaiser at cct.lsu.edu
hkaiser at cct.lsu.edu
Tue Jan 27 10:57:21 CST 2009
User: hkaiser
Date: 2009/01/27 10:57 AM
Modified:
/trunk/adaptors/default/cpr/
cpr_context.cpp
Log:
Improved error message
File Changes:
Directory: /trunk/adaptors/default/cpr/
=======================================
File [modified]: cpr_context.cpp
Delta lines: +10 -4
===================================================================
--- trunk/adaptors/default/cpr/cpr_context.cpp 2009-01-27 16:14:41 UTC (rev 3396)
+++ trunk/adaptors/default/cpr/cpr_context.cpp 2009-01-27 16:57:19 UTC (rev 3397)
@@ -29,8 +29,11 @@
if ( attr.attribute_exists (saga::attributes::context_type) &&
attr.get_attribute (saga::attributes::context_type) != "UserPass" )
{
- SAGA_ADAPTOR_THROW ("Can't handle context types others than 'UserPass'",
- saga::BadParameter);
+ SAGA_OSSTREAM strm;
+ strm << "Can't handle context types others than 'UserPass' "
+ << "(got: " << attr.get_attribute(saga::attributes::context_type)
+ << ")";
+ SAGA_ADAPTOR_THROW(SAGA_OSSTREAM_GETSTRING(strm), saga::BadParameter);
}
}
@@ -49,8 +52,11 @@
{
if (attr.get_attribute (saga::attributes::context_type) != "UserPass" )
{
- SAGA_ADAPTOR_THROW( "Can't handle context types others than 'UserPass'",
- saga::BadParameter);
+ SAGA_OSSTREAM strm;
+ strm << "Can't handle context types others than 'UserPass' "
+ << "(got: " << attr.get_attribute(saga::attributes::context_type)
+ << ")";
+ SAGA_ADAPTOR_THROW(SAGA_OSSTREAM_GETSTRING(strm), saga::BadParameter);
}
if ( ! attr.attribute_exists (saga::attributes::context_userid) )
More information about the saga-devel
mailing list