Changeset 265


Ignore:
Timestamp:
07/15/05 16:34:02 (19 years ago)
Author:
Kris Deugau
Message:

/branches/stable

Bugfix; allow the real error message to actually show up for
errors adding a master block.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/cgi-bin/main.cgi

    r264 r265  
    112112
    113113    if ($@) {
    114       carp "Transaction aborted because $@";
     114      my $msg = $@;
     115      carp "Transaction aborted because $msg";
    115116      eval { $ip_dbh->rollback; };
    116       syslog "err", "Could not add master block '$webvar{cidr}' to database: '$@'";
    117       printError("Could not add master block $webvar{cidr} to database: $@");
     117      syslog "err", "Could not add master block '$webvar{cidr}' to database: '$msg'";
     118      printError("Could not add master block $webvar{cidr} to database: $msg");
    118119    } else {
    119120      print "<div type=heading align=center>Success!</div>\n";
Note: See TracChangeset for help on using the changeset viewer.