Project

General

Profile

Actions

Bug #6438

closed

Exception caught from WWidget::load() does not print the actual e.what()

Added by Saif Rehman almost 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
06/09/2018
Due date:
% Done:

0%

Estimated time:

Description

I found a problem that can prevent important exception messages from being obscured. When any exception is caught from WWidget::load() and when Wt logs the fatal error before killing the WApplication, it somehow catches an exception without the original exception's e.what() message.

Only the following message is logged: "Wt: fatal error: std::exception"

I've uploaded the test case to reproduce the problem.


Files

errorOnLoadException.cpp (1.14 KB) errorOnLoadException.cpp Saif Rehman, 06/09/2018 08:08 AM
Actions #1

Updated by Roel Standaert almost 7 years ago

  • Status changed from New to Resolved

Looks like it was being copied into a standard std::exception when being rethrown somewhere. My latest push fixes that.

Actions #2

Updated by Roel Standaert over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF