Error handling when pasting source code into my site