better error reporting for exceptions thrown during conversion