/*
 * call-seq:
 *    conn.error()
 *
 * Returns the error message about connection.
 */
static VALUE
pgconn_error(obj)
  VALUE obj;
{
  char *error = PQerrorMessage(get_pgconn(obj));
  if (!error) return Qnil;
  return rb_tainted_str_new2(error);
}