IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 21, 2008, 9:50:04 AM (18 years ago)
Author:
bills
Message:

handle some unexpected errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataStoreServer/scripts/dsreg

    r18842 r20288  
    376376                            $ps0, $ps1, $ps2, $ps3, $ps4, $ps5, $ps6, $ps7));
    377377
    378         die("failed to insert $fileset") if ($count == 0E0);
     378        die("failed to insert $fileset") if (!defined($count) or ($count == 0E0));
    379379
    380380        my $fileset_id = $dbh->last_insert_id(undef, undef, undef, undef);
     381
     382        die("last_insert_id returned undef") if (!defined($fileset_id));
     383        die("last_insert_id returned 0") if (!$fileset_id);
    381384
    382385        # make sure that no-one got in and created a fileset with this name while we were busy
Note: See TracChangeset for help on using the changeset viewer.