Changeset 1204


Ignore:
Timestamp:
12/27/12 18:26:36 (11 years ago)
Author:
nanardon
Message:

ensure error during base synchronisation are reported

Location:
trunk/LATMOS-Accounts/lib/LATMOS/Accounts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Synchro.pm

    r1071 r1204  
    365365    $self->unlock; 
    366366 
    367     1; 
     367    if (!$res) { # postscript failure 
     368        return; 
     369    } elsif (grep { $desterror{$_} } keys %desterror) { 
     370        # There were errors :\ 
     371        return; 
     372    } else { 
     373        return 1; 
     374    } 
    368375} 
    369376 
  • trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Task/Basessynchro.pm

    r1023 r1204  
    3333    ) or do { 
    3434       la_log LA_ERR, "cannot create sync object"; 
    35        return 2; 
     35       return; 
    3636    }; 
    3737 
    3838    $sync->load_dest and do { 
    3939        la_log LA_ERR, "Cannot load destination"; 
    40         return 3; 
     40        return; 
    4141    }; 
    4242 
    4343    $sync->process() or do { 
    4444        la_log LA_ERR, "Sync has failed\n"; 
    45         return 4; 
     45        return; 
    4646    }; 
     47 
     48    return 1; 
    4749} 
    4850 
Note: See TracChangeset for help on using the changeset viewer.