From 9d2ba6504125b9c7f0ec8f547ee39a96c6e3806d Mon Sep 17 00:00:00 2001 From: Christian Bauer Date: Wed, 22 Jan 2003 20:07:30 +0000 Subject: [PATCH] synced to 1.1 --- ginac/idx.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ginac/idx.cpp b/ginac/idx.cpp index 82052d88..f69613c6 100644 --- a/ginac/idx.cpp +++ b/ginac/idx.cpp @@ -21,6 +21,7 @@ */ #include +#include #include #include "idx.h" @@ -546,8 +547,11 @@ ex minimal_dim(const ex & dim1, const ex & dim2) return dim1; else if (dim1 > dim2 || (is_a(dim1) && is_exactly_a(dim2))) return dim2; - else - throw (std::runtime_error("minimal_dim(): index dimensions cannot be ordered")); + else { + std::ostringstream s; + s << "minimal_dim(): index dimensions " << dim1 << " and " << dim2 << " cannot be ordered"; + throw (std::runtime_error(s.str())); + } } } // namespace GiNaC -- 2.44.0