Error thrown by call in try block from call getting caught by second try block in finally
I have some code in a try/finally that is throwing an error in the try block, which is getting caught by a different try/catch exception in the finally block:
try {
// throws some error
work();
} finally {
try {
// does not throw an error
cleanup();
} catch (GLib.Error err) {
// logs the error from the call to work()
debug("Error in cleanup: %s", err.message);
}
}
Happens against current git master and 0.42 branch.
Edited by Michael Gratton