Sfoglia il codice sorgente

[checksum.py] fixed incorrect variable used in stderr message

Chris Simpkins 7 anni fa
parent
commit
35a6b098b3
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      tools/scripts/checksum/checksum.py

+ 1 - 1
tools/scripts/checksum/checksum.py

@@ -101,7 +101,7 @@ def check_checksum(filepaths):
     check_failed = False
     for path in filepaths:
         if not os.path.exists(path):
-            sys.stderr.write("[checksum.py] ERROR: " + filepath + " is not a valid filepath" + os.linesep)
+            sys.stderr.write("[checksum.py] ERROR: " + path + " is not a valid filepath" + os.linesep)
             sys.exit(1)
 
         with open(path, mode='r') as file: