From c6c018d94eb6447b0fa3ebabd8e488234a328c07 Mon Sep 17 00:00:00 2001 From: slaws Date: Wed, 18 Aug 2010 15:00:50 +0000 Subject: Add missing audit text git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@986720 13f79535-47bb-0310-9956-ffa450edef68 --- .../tuscany/sca/interfacedef/impl/InterfaceContractMapperImpl.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sca-java-2.x') diff --git a/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/impl/InterfaceContractMapperImpl.java b/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/impl/InterfaceContractMapperImpl.java index 6c67e497e0..3dedb5e62c 100644 --- a/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/impl/InterfaceContractMapperImpl.java +++ b/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/impl/InterfaceContractMapperImpl.java @@ -398,6 +398,8 @@ public class InterfaceContractMapperImpl implements InterfaceContractMapper { Operation targetOperation = map(target.getInterface(), operation); if (targetOperation == null) { if (!silent) { + audit.append("Operation " + operation.getName()+ " not found on target"); + audit.appendSeperator(); throw new IncompatibleInterfaceContractException( "Operation " + operation.getName() + " not found on target", source, target); @@ -411,6 +413,8 @@ public class InterfaceContractMapperImpl implements InterfaceContractMapper { audit = new Audit(); if (!isCompatible(operation, targetOperation, Compatibility.SUBSET, true, audit)) { + audit.append("Operations called " + operation.getName()+ " are not compatible"); + audit.appendSeperator(); throw new IncompatibleInterfaceContractException( "Operations called " + operation.getName() + " are not compatible " + audit, source, -- cgit v1.2.3