Dynect errors were not visible in the exceptions

When DynectError was raised the error message was not shown in the backtrace.