Replace ignore-errors with condition-case-unless-debug