[tbb-commits] [rbm/master] Bug 27265: add an error when we fail to download/create a file

gk at torproject.org gk at torproject.org
Thu Nov 28 08:39:58 UTC 2019


commit ef4df05a484c746f33e361eb8d82d5fb85009c14
Author: Nicolas Vigier <boklm at torproject.org>
Date:   Wed Aug 22 12:24:23 2018 +0200

    Bug 27265: add an error when we fail to download/create a file
---
 lib/RBM.pm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/RBM.pm b/lib/RBM.pm
index 087ebe3..9659f16 100644
--- a/lib/RBM.pm
+++ b/lib/RBM.pm
@@ -893,8 +893,9 @@ sub input_files {
                 dd $input_file;
                 exit_error "Missing file $name";
             }
+            ($fname) = file_in_dir($name, $src_dir, $proj_out_dir);
+            exit_error "Error getting file $name" unless $fname;
         }
-        ($fname) = file_in_dir($name, $src_dir, $proj_out_dir);
         if ($action eq 'input_files_id') {
             $input_files_id .= input_file_id($input_file, $t, $fname, $name);
             $input_files_id .= "\n";





More information about the tbb-commits mailing list