Changeset 549


Ignore:
Timestamp:
11/13/09 18:34:07 (15 years ago)
Author:
nanardon
Message:
  • check base is correctly instanciate instead having perl error
File:
1 edited

Legend:

Unmodified
Added
Removed
  • LATMOS-Accounts/bin/la-config

    r457 r549  
    3636 
    3737Perform query on this base 
    38  
    3938 
    4039=item --lb 
     
    8584        ) foreach($labase->list_canonical_fields($otype, 'a')); 
    8685    } else { 
    87         my $labase = $base ? $LA->base($base) : $LA->default_base; 
     86        my $labase = $base ? $LA->base($base) : $LA->default_base 
     87            or die "Cannot instanciate " . 
     88            $base ? $base : $LA->default_base_name . "\n"; 
    8889        printf "Supported object type by base %s\n", 
    89         $base ? $base : $LA->default_base_name; 
     90            $base ? $base : $LA->default_base_name; 
    9091        print "  $_\n" foreach($labase->list_supported_objects); 
    9192    } 
Note: See TracChangeset for help on using the changeset viewer.