Mercurial > projects > dwt-win
diff dwt/dwthelper/utils.d @ 206:cca980503056
sync with dwt-linux, removed the simple.d
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 16 Apr 2008 20:36:50 +0200 |
parents | 1d129e5f6aa6 |
children | ab60f3309436 |
line wrap: on
line diff
--- a/dwt/dwthelper/utils.d Wed Apr 16 20:36:33 2008 +0200 +++ b/dwt/dwthelper/utils.d Wed Apr 16 20:36:50 2008 +0200 @@ -777,7 +777,14 @@ ExceptionPrintStackTrace( e, Stderr ); } void ExceptionPrintStackTrace( Exception e, Print!(char) print ){ - print.formatln( "Exception in {}({}): {}", e.file, e.line, e.msg ); + Exception exception = e; + while( exception !is null ){ + print.formatln( "Exception in {}({}): {}", exception.file, exception.line, exception.msg ); + foreach( msg; exception.info ){ + print.formatln( "trc {}", msg ); + } + exception = exception.next; + } } interface Reader{