From a361f6a148d5d352f21e72c282052ac2e266805c Mon Sep 17 00:00:00 2001 From: Marc Prud'hommeaux Date: Fri, 3 Aug 2007 23:38:34 +0000 Subject: [PATCH] Changed exception message to show the version id (e.g., 1.0.0-SNAPSHOT-r12345), rather than redundant version status string that had been output (e.g., 1.0.0-SNAPSHOT-SNAPSHOT). git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@562615 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/openjpa/util/Exceptions.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/util/Exceptions.java b/openjpa-kernel/src/main/java/org/apache/openjpa/util/Exceptions.java index b64e8cda6..a8de24a66 100644 --- a/openjpa-kernel/src/main/java/org/apache/openjpa/util/Exceptions.java +++ b/openjpa-kernel/src/main/java/org/apache/openjpa/util/Exceptions.java @@ -139,8 +139,8 @@ public class Exceptions { int type = e.getType(); StringBuffer buf = new StringBuffer(); buf.append("<"). - append(OpenJPAVersion.VERSION_NUMBER). - append(OpenJPAVersion.RELEASE_STATUS).append(' '). + append(OpenJPAVersion.VERSION_ID). + append(' '). append(e.isFatal() ? "fatal " : "nonfatal "). append (type == ExceptionInfo.GENERAL ? "general error" : type == ExceptionInfo.INTERNAL ? "internal error" :