From 5027d5d5ef6304ea0637b67a898bea835220fedc Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Wed, 5 Aug 2020 01:25:12 +0200 Subject: [PATCH] Bug in error message in AutoContact::getLentgh(). --- anabatic/src/AutoContact.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/anabatic/src/AutoContact.cpp b/anabatic/src/AutoContact.cpp index 037e622d..54b1662a 100644 --- a/anabatic/src/AutoContact.cpp +++ b/anabatic/src/AutoContact.cpp @@ -231,9 +231,12 @@ namespace Anabatic { DbU::Unit sideLength = (segment->isHorizontal()) ? hSideLength : vSideLength; if ( not segment->isUnbound() and (abs(length) > sideLength) ) - cerr << Error("Suspicious length:%.2f of %s." - ,DbU::getValueString(length).c_str() - ,getString(segment).c_str()) << endl; + cerr << Error( "AutoContact::getLength(): Suspicious length %s (> %s) of %s.\n" + " (on: %s)" + , DbU::getValueString(length).c_str() + , DbU::getValueString(sideLength).c_str() + , getString(segment).c_str() + , getString(this).c_str()) << endl; } else { if (segment->isHorizontal()) { if (isSourceHook)