Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-gh-mirror
ensembl
Commits
5185250b
Commit
5185250b
authored
Jan 29, 2008
by
Andreas Kusalananda Kähäri
Browse files
Die if a species section refers to a non-existant source section.
parent
be874926
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
misc-scripts/xref_mapping/xref_config2sql.pl
misc-scripts/xref_mapping/xref_config2sql.pl
+8
-0
No files found.
misc-scripts/xref_mapping/xref_config2sql.pl
View file @
5185250b
...
...
@@ -110,6 +110,14 @@ foreach my $species_section ( sort( $config->GroupMembers('species') ) )
{
my
$source_section
=
sprintf
(
"
source %s
",
$source_name
);
if
(
!
defined
(
$config
->
val
(
$source_section
,
'
id
'
)
)
)
{
die
(
sprintf
(
"
Can not find source section '[%s]'
\n
"
.
"
while reading species section '[%s]'
\n
",
$source_section
,
$species_section
)
);
}
printf
(
"
# Data from source '%s' (id = %d)
\n
",
$source_name
,
$config
->
val
(
$source_section
,
'
id
'
)
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment