Nicer errors

Some nicer/safer error messages/pages.