File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
lib/BioX/Workflow/Command Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ use Number::Bytes::Human qw(format_bytes parse_bytes);
99use File::Details;
1010use File::Basename;
1111use List::MoreUtils qw( uniq) ;
12+ use Try::Tiny;
1213
1314extends qw( BioX::Workflow::Command ) ;
1415
@@ -138,7 +139,7 @@ sub gen_row {
138139 my $sample = shift ;
139140 my $sample_files = shift ;
140141
141- foreach my $file (@{$sample_files }) {
142+ foreach my $file ( @{$sample_files } ) {
142143
143144 my @trow = ();
144145
@@ -147,13 +148,13 @@ sub gen_row {
147148 push ( @trow , $cond );
148149
149150 my $rel = ' ' ;
150- $rel = $file ;
151+ $rel = $file ;
151152 $rel = File::Spec-> abs2rel($file ) if $self -> use_full;
152153
153154 my $basename = basename($file ) unless $self -> use_full;
154155
155156 # Add the filename
156- push ( @trow , $rel ) if $self -> use_full;
157+ push ( @trow , $rel ) if $self -> use_full;
157158 push ( @trow , $basename ) if !$self -> use_full;
158159
159160 # Does the file exist?
@@ -220,7 +221,9 @@ sub iter_file_chunks {
220221
221222after ' template_process' => sub {
222223 my $self = shift ;
223- $self -> table_log-> addRowLine();
224+ try {
225+ $self -> table_log-> addRowLine();
226+ }
224227};
225228
226229around ' print_process_workflow' => sub {
You can’t perform that action at this time.
0 commit comments