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
02cd9284
Commit
02cd9284
authored
Jun 13, 2012
by
Andy Yates
Browse files
Improving error reporting hopefully
parent
1dfa5820
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
modules/Bio/EnsEMBL/Pipeline/FASTA/BlatIndexer.pm
modules/Bio/EnsEMBL/Pipeline/FASTA/BlatIndexer.pm
+3
-1
modules/Bio/EnsEMBL/Pipeline/FASTA/WuBlastIndexer.pm
modules/Bio/EnsEMBL/Pipeline/FASTA/WuBlastIndexer.pm
+3
-1
No files found.
modules/Bio/EnsEMBL/Pipeline/FASTA/BlatIndexer.pm
View file @
02cd9284
...
...
@@ -106,7 +106,9 @@ sub index_file {
$self
->
param
('
program
'),
$file
,
$target_file
);
$self
->
info
('
About to run "%s"
',
$cmd
);
system
(
$cmd
)
and
throw
"
Cannot run program '
$cmd
'
";
my
$output
=
`
$cmd
2>&1
`;
my
$rc
=
$?
>>
8
;
throw
"
Cannot run program '
$cmd
'. Return code was
${rc}
. Program output was
$output
"
if
$rc
;
unlink
$file
or
throw
"
Cannot remove the file '
$file
' from the filesystem: $!
";
#Check the file size. If it's 16 bytes then reject as that is an empty file for 2bit
...
...
modules/Bio/EnsEMBL/Pipeline/FASTA/WuBlastIndexer.pm
View file @
02cd9284
...
...
@@ -100,7 +100,9 @@ sub index_file {
$self
->
param
('
program
'),
$molecule_arg
,
$silence
,
$target_file
,
$file
);
$self
->
info
('
About to run "%s"
',
$cmd
);
system
(
$cmd
)
and
throw
sprintf
("
Cannot run program '%s' with exit code %d
",
$cmd
,
(
$?
>>
8
));
my
$output
=
`
$cmd
2>&1
`;
my
$rc
=
$?
>>
8
;
throw
"
Cannot run program '
$cmd
'. Return code was
${rc}
. Program output was
$output
"
if
$rc
;
unlink
$file
or
throw
"
Cannot remove the file '
$file
' from the filesystem: $!
";
$self
->
param
('
index_base
',
$target_file
);
return
;
...
...
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