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

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



Title: GitLab

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:

Changes:

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

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