error handle for <pre><code>