Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ensembl
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
ensembl
Commits
02cd9284
Commit
02cd9284
authored
12 years ago
by
Andy Yates
Browse files
Options
Downloads
Patches
Plain Diff
Improving error reporting hopefully
parent
1dfa5820
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/Bio/EnsEMBL/Pipeline/FASTA/BlatIndexer.pm
+3
-1
3 additions, 1 deletion
modules/Bio/EnsEMBL/Pipeline/FASTA/BlatIndexer.pm
modules/Bio/EnsEMBL/Pipeline/FASTA/WuBlastIndexer.pm
+3
-1
3 additions, 1 deletion
modules/Bio/EnsEMBL/Pipeline/FASTA/WuBlastIndexer.pm
with
6 additions
and
2 deletions
modules/Bio/EnsEMBL/Pipeline/FASTA/BlatIndexer.pm
+
3
−
1
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
...
...
This diff is collapsed.
Click to expand it.
modules/Bio/EnsEMBL/Pipeline/FASTA/WuBlastIndexer.pm
+
3
−
1
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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment