First stab at error reporting stuff.