[tor-commits] [Git][tpo/applications/rbm][main] Bug 40056: Improve error message when input file is missing

richard (@richard) git at gitlab.torproject.org
Wed Jul 19 20:12:51 UTC 2023



richard pushed to branch main at The Tor Project / Applications / RBM


Commits:
f40e2236 by Nicolas Vigier at 2023-07-19T12:25:47+02:00
Bug 40056: Improve error message when input file is missing

- - - - -


1 changed file:

- lib/RBM.pm


Changes:

=====================================
lib/RBM.pm
=====================================
@@ -802,6 +802,7 @@ sub input_file_need_dl {
 
 sub input_file_id_hash {
     my ($fname, $filename) = @_;
+    exit_error "input_file_id: file $filename is missing" unless $fname;
     return $filename . ':' . sha256file($fname) if -f $fname;
     return $filename . ':' . sha256file(readlink $fname) if -l $fname;
     my @subdirs = sort(map { $_->basename } path($fname)->children);



View it on GitLab: https://gitlab.torproject.org/tpo/applications/rbm/-/commit/f40e22360457a2d04b372fee22d89b764ec76c6b

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/rbm/-/commit/f40e22360457a2d04b372fee22d89b764ec76c6b
You're receiving this email because of your account on gitlab.torproject.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tor-commits/attachments/20230719/e3cd78fd/attachment.htm>


More information about the tor-commits mailing list