[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit ef4df05a484c746f33e361eb8d82d5fb85009c14
Author: Nicolas Vigier <boklm@xxxxxxxxxxxxxx>
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";



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits