Fix for #886

Throws a more meaningful error message if error traces are on, swallows the error if they're off.