Ignore:
Timestamp:
05/31/12 19:50:37 (12 years ago)
Author:
nanardon
Message:
  • add error message if domain is missing
File:
1 edited

Legend:

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

    r1037 r1038  
    7171    my ($class, %options) = @_; 
    7272     
    73     $options{domain} or return; 
     73    $options{domain} or do { 
     74        la_log(LA_ERR, 
     75            "Cannot instanciate base %s w/o domain name", 
     76            $options{label} || '(unknown label)' 
     77        ); 
     78        return; 
     79    }; 
     80 
    7481    my $self = { 
    7582        _server => $options{server}, 
Note: See TracChangeset for help on using the changeset viewer.