Started to try to get back into this; work on exceptions and loops.

This commit is contained in:
Simon Brooke 2021-07-24 08:54:55 +01:00
parent 16f78f4077
commit d2101dbd47
No known key found for this signature in database
GPG key ID: A7A4F18D1D4DF987
9 changed files with 101 additions and 10 deletions

View file

@ -267,7 +267,8 @@ void dump_frame( URL_FILE * output, struct cons_pointer frame_pointer ) {
void dump_stack_trace( URL_FILE * output, struct cons_pointer pointer ) {
if ( exceptionp( pointer ) ) {
print( output, pointer2cell( pointer ).payload.exception.message );
// todo: if the payload isn't a message, we maybe shouldn't print it?
print( output, pointer2cell( pointer ).payload.exception.payload );
url_fputws( L"\n", output );
dump_stack_trace( output,
pointer2cell( pointer ).payload.exception.frame );