|
Boost-Commit : |
From: john_at_[hidden]
Date: 2007-12-15 12:11:53
Author: johnmaddock
Date: 2007-12-15 12:11:53 EST (Sat, 15 Dec 2007)
New Revision: 42075
URL: http://svn.boost.org/trac/boost/changeset/42075
Log:
Merge error string fix from trunk.
Text files modified:
branches/release/boost/math/policies/error_handling.hpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Modified: branches/release/boost/math/policies/error_handling.hpp
==============================================================================
--- branches/release/boost/math/policies/error_handling.hpp (original)
+++ branches/release/boost/math/policies/error_handling.hpp 2007-12-15 12:11:53 EST (Sat, 15 Dec 2007)
@@ -71,7 +71,7 @@
void raise_error(const char* function, const char* message)
{
if(function == 0)
- function = "Unknown function";
+ function = "Unknown function operating on type %1%";
if(message == 0)
message = "Cause unknown";
@@ -88,9 +88,9 @@
void raise_error(const char* function, const char* message, const T& val)
{
if(function == 0)
- function = "Unknown function";
+ function = "Unknown function operating on type %1%";
if(message == 0)
- message = "Cause unknown";
+ message = "Cause unknown: error caused by bad argument with value %1%";
std::string msg("Error in function ");
msg += (boost::format(function) % typeid(T).name()).str();
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk