浏览代码

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

Chris Simpkins 7 年之前
父节点
当前提交
35a6b098b3
共有 1 个文件被更改,包括 1 次插入1 次删除
  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
     check_failed = False
     for path in filepaths:
     for path in filepaths:
         if not os.path.exists(path):
         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)
             sys.exit(1)
 
 
         with open(path, mode='r') as file:
         with open(path, mode='r') as file: