Commit 854801d4 authored by Davis King's avatar Davis King

Improved assert error message.

parent 99885356
......@@ -195,7 +195,10 @@ namespace dlib
double f_x2
)
{
DLIB_ASSERT(0 < x1 && x1 < x2,"Invalid inputs were given to this function");
DLIB_ASSERT(0 < x1 && x1 < x2,"Invalid inputs were given to this function.\n"
<< "x1: " << x1
<< " x2: " << x2
);
// The contents of this function follow the equations described on page 58 of the
// book Numerical Optimization by Nocedal and Wright, second edition.
matrix<double,2,2> m;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment