Changeset 502


Ignore:
Timestamp:
05/07/13 11:01:41 (12 years ago)
Author:
Kris Deugau
Message:

/trunk

Propagate new errors from domainID() back to the RPC caller, now that
we have an error to propagate back.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dns-rpc.cgi

    r500 r502  
    379379  }
    380380
     381  # fail if we *still* don't have a valid zone ID
     382  die $dnsdb->errstr."\n" if !$args{id};
     383
    381384  # and finally retrieve the records.
    382385  my $ret = $dnsdb->getRecList(defrec => $args{defrec}, revrec => $args{revrec}, id => $args{id},
    383386        offset => $args{offset}, nrecs => $args{nrecs}, sortby => $args{sortby},
    384387        sortorder => $args{sortorder}, filter => $args{filter});
    385 
    386 ##fixme:  what to do if domain doesn't exist?
    387   die $dnsdb->errstr if !$ret;
     388  die $dnsdb->errstr."\n" if !$ret;
    388389
    389390  return $ret;
Note: See TracChangeset for help on using the changeset viewer.