You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ibatis.apache.org by gb...@apache.org on 2005/05/11 06:55:47 UTC
svn commit: r169581 -
/incubator/ibatis/trunk/cs/mapper/IBatisNet.DataAccess/Scope/ErrorContext.cs
Author: gbayon
Date: Tue May 10 21:55:47 2005
New Revision: 169581
URL: http://svn.apache.org/viewcvs?rev=169581&view=rev
Log:
- Fixed typo (JIRA 52)
Modified:
incubator/ibatis/trunk/cs/mapper/IBatisNet.DataAccess/Scope/ErrorContext.cs
Modified: incubator/ibatis/trunk/cs/mapper/IBatisNet.DataAccess/Scope/ErrorContext.cs
URL: http://svn.apache.org/viewcvs/incubator/ibatis/trunk/cs/mapper/IBatisNet.DataAccess/Scope/ErrorContext.cs?rev=169581&r1=169580&r2=169581&view=diff
==============================================================================
--- incubator/ibatis/trunk/cs/mapper/IBatisNet.DataAccess/Scope/ErrorContext.cs (original)
+++ incubator/ibatis/trunk/cs/mapper/IBatisNet.DataAccess/Scope/ErrorContext.cs Tue May 10 21:55:47 2005
@@ -103,9 +103,9 @@
public void Reset()
{
_resource = string.Empty;
- _activity = string.Empty;;
- _objectId = string.Empty;;
- _moreInfo = string.Empty;;
+ _activity = string.Empty;
+ _objectId = string.Empty;
+ _moreInfo = string.Empty;
_cause = null;
}
@@ -120,7 +120,7 @@
// activity
- if (_activity != null)
+ if (_activity != null && _activity.Length > 0)
{
message.Append("\n- The error occurred while ");
message.Append(_activity);
@@ -128,14 +128,14 @@
}
// more info
- if (_moreInfo != null)
+ if (_moreInfo != null && _moreInfo.Length > 0)
{
message.Append("\n- ");
message.Append(_moreInfo);
}
// resource
- if (_resource != null)
+ if (_resource != null && _resource.Length > 0)
{
message.Append("\n- The error occurred in ");
message.Append(_resource);
@@ -143,13 +143,12 @@
}
// object
- if (_objectId != null)
+ if (_objectId != null && _objectId.Length > 0)
{
message.Append(" \n- Check the ");
message.Append(_objectId);
message.Append(".");
}
-
// cause
if (_cause != null)