catching Errors in OS callbacks how to print stack trace?
    NaN 
    divide at by.zero
       
    Mon Feb 24 21:07:13 UTC 2020
    
    
  
On Monday, 24 February 2020 at 13:43:30 UTC, Adam D. Ruppe wrote:
> On Monday, 24 February 2020 at 13:42:01 UTC, NaN wrote:
>>         try { writeln(e.msg); }
>
> try `writeln(e.toString());` instead.
>
> msg only contains the message passed to the constructor by 
> itself, toString includes the file/line and stack trace members 
> too.
>
> easiest way usually.
That worked thanks!
    
    
More information about the Digitalmars-d-learn
mailing list