lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject [lucy-commits] svn commit: r1056178 - /incubator/lucy/trunk/core/Lucy/Object/Err.c
Date Fri, 07 Jan 2011 03:15:08 GMT
Author: marvin
Date: Fri Jan  7 03:15:08 2011
New Revision: 1056178

URL: http://svn.apache.org/viewvc?rev=1056178&view=rev
Log:
Isolate error message on its own line when throwing an exception.

Modified:
    incubator/lucy/trunk/core/Lucy/Object/Err.c

Modified: incubator/lucy/trunk/core/Lucy/Object/Err.c
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/core/Lucy/Object/Err.c?rev=1056178&r1=1056177&r2=1056178&view=diff
==============================================================================
--- incubator/lucy/trunk/core/Lucy/Object/Err.c (original)
+++ incubator/lucy/trunk/core/Lucy/Object/Err.c Fri Jan  7 03:15:08 2011
@@ -124,9 +124,9 @@ S_vcat_mess(CharBuf *message, const char
     CB_Grow(message, guess_len);
     CB_VCatF(message, pattern, args);
     if (func != NULL)
-        CB_catf(message, ", %s at %s line %i32\n", func, file, (int32_t)line);
+        CB_catf(message, ",\n\t%s at %s line %i32\n", func, file, (int32_t)line);
     else 
-        CB_catf(message, " at %s line %i32\n", file, (int32_t)line);
+        CB_catf(message, "\n\t%s line %i32\n", file, (int32_t)line);
 }
 
 CharBuf*



Mime
View raw message