Changeset 228:628e9518870e

Show
Ignore:
Timestamp:
05/22/08 13:46:10 (5 months ago)
Author:
Frank Benoit <benoit@tionex.de>
branch:
default
Message:

Fix ExceptionPrintStacktrace?

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • dwt/dwthelper/utils.d

    r226 r228  
    768768} 
    769769 
     770String ExceptionGetLocalizedMessage( Exception e ){ 
     771    return e.msg; 
     772} 
    770773 
    771774void ExceptionPrintStackTrace( Exception e ){ 
     
    776779    while( exception !is null ){ 
    777780        print.formatln( "Exception in {}({}): {}", exception.file, exception.line, exception.msg ); 
    778         foreach( msg; exception.info ){ 
    779             print.formatln( "trc {}", msg ); 
     781        if( exception.info !is null ){ 
     782            foreach( msg; exception.info ){ 
     783                print.formatln( "trc {}", msg ); 
     784            } 
    780785        } 
    781786        exception = exception.next;