minor: Fix incorrect traceExceptions example

The current example generates an error. A bool is expected.