remove any error lines before croaking, in case we croak inside an eval