Check buffer in PrettyException