Changeset 2500


Ignore:
Timestamp:
11/30/21 23:36:29 (3 years ago)
Author:
nanardon
Message:

Add error message

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts/bin/la-sync

    r1930 r2500  
    100100    unexported => $unexp, 
    101101) or die "cannot create sync object\n"; 
    102 $sync->load_dest and return; 
     102$sync->load_dest and do { 
     103    die "Cannot load dest base\n"; 
     104}; 
     105 
    103106if ($otype) { 
    104     my @list = $all 
    105         ? $sync->from->list_objects($otype) 
    106         : @ARGV; 
     107    my @list; 
     108 
     109    if ($all) { 
     110        @list =  $sync->from->list_objects($otype) 
     111    } elsif (@ARGV) { 
     112        @list = @ARGV; 
     113    } else { 
     114        die "No object to synchronize given, -a missing ?\n"; 
     115    } 
    107116 
    108117    foreach (@list) { 
Note: See TracChangeset for help on using the changeset viewer.