Using include() in a die() statement?

Hello peeps.

I’ve done a tiny bit of research and can’t seem to find a way to combine the usefulness of the die() method (which interrupts your script if something screwed up) and that of the include.

I’m trying to create a better-looking error output (the usual mysql jibberish is confusing for the non-programmers), yet the die() methods only seems to output text to the browser.

Any help ?

(btw, I don’t want to code a whole webpage inside of the die() using die("<html><head>…</body></html>")