Skip to content
Snippets Groups Projects
Commit e3b3dd00 authored by Andy Yates's avatar Andy Yates
Browse files

Error checking

parent b4a382c3
No related branches found
No related tags found
No related merge requests found
......@@ -22,11 +22,16 @@ use strict;
use warnings;
use Config::IniFiles;
my $config =
Config::IniFiles->new( -file =>
( defined $ARGV[0] && -f $ARGV[0] ? $ARGV[0] : 'xref_config.ini' )
);
my $file = ( defined $ARGV[0] && -f $ARGV[0]) ? $ARGV[0] : 'xref_config.ini';
warn $file;
my $config =Config::IniFiles->new(-file =>$file);
if(! defined $config) {
foreach my $e (@Config::IniFiles::errors) {
warn "errors found";
warn $e;
}
die "No Xref config made from $file. Check STDERR";
}
my %source_ids;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment