diff base/src/java/lang/exceptions.d @ 60:66be6a990713

new eclipsetools target, fix of new exception stacktrace info.
author Frank Benoit <benoit@tionex.de>
date Mon, 30 Mar 2009 14:46:59 +0200
parents 1bf55a6eb092
children fcf926c91ca4
line wrap: on
line diff
--- a/base/src/java/lang/exceptions.d	Mon Mar 30 12:09:37 2009 +0200
+++ b/base/src/java/lang/exceptions.d	Mon Mar 30 14:46:59 2009 +0200
@@ -144,8 +144,8 @@
     while( exception !is null ){
         dg( exception.file, exception.line, "Exception in {}({}): {}", exception.file, exception.line, exception.msg );
         if( exception.info !is null ){
-            foreach( msg; exception.info ){
-                dg( exception.file, exception.line, "trc {}", msg );
+            foreach( frame; exception.info ){
+                dg( exception.file, exception.line, "trc {} {}", frame.file, frame.line );
             }
         }
         exception = exception.next;
@@ -156,9 +156,9 @@
     auto e = new Exception( null );
     int idx = 0;
     const start = 3;
-    foreach( msg; e.info ){
+    foreach( frame; e.info ){
         if( idx >= start && idx < start+deepth ) {
-            getDwtLogger().trace( __FILE__, __LINE__, "{}: {}", prefix, msg );
+            getDwtLogger().trace( __FILE__, __LINE__, "{} {}: {}", prefix, frame.file, frame.line );
         }
         idx++;
     }