Commit 3378b903 authored by Carsten Gräser's avatar Carsten Gräser

Improve error message in excetion by adding diagnostic data

parent fe4e5d71
Pipeline #16237 passed with stage
in 79 minutes and 4 seconds
......@@ -221,7 +221,7 @@ struct Conversion<Dune::FieldVector<T,n> >
else
{
if (PySequence_Size(list)!=n)
DUNE_THROW(Dune::Exception, "cannot convert a sequence to a Dune::FieldVector with a different size");
DUNE_THROW(Dune::Exception, "cannot convert a sequence of size" << PySequence_Size(list) << " to a Dune::FieldVector of size " << n);
for(size_t i=0; i<n; ++i)
Reference(PySequence_GetItem(list, i)).toC(v[i]);
......
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