Changeset 22762 for lang/perl/Moxy

Show
Ignore:
Timestamp:
11/05/08 16:49:28 (2 months ago)
Author:
tokuhirom
Message:

better error handling

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Moxy/trunk/lib/Moxy/Cmd.pm

    r20485 r22762  
    3131 
    3232    die "missing configuration file path" unless $opt->{config}; 
     33    die "configuration file does not exists: $opt->{config}" unless -f $opt->{config}; 
    3334    print "open configuration file: $opt->{config}\n"; 
    3435    my $config = YAML::LoadFile( $opt->{config} );