From 1a2bf4d8ffe682636bd7faecff42b7c21359cfa0 Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Fri, 28 Jun 2019 14:23:21 +0200 Subject: [PATCH] idf_tools: print additional info when download verification fails --- tools/idf_tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/idf_tools.py b/tools/idf_tools.py index d53e036bf6..30ed7b6389 100755 --- a/tools/idf_tools.py +++ b/tools/idf_tools.py @@ -559,10 +559,10 @@ class IDFTool(object): expected_size = download_obj.size file_size, file_sha256 = get_file_size_sha256(local_path) if file_size != expected_size: - warn('file size mismatch for {0}'.format(local_path)) + warn('file size mismatch for {}, expected {}, got {}'.format(local_path, expected_size, file_size)) return False if file_sha256 != expected_sha256: - warn('hash mismatch for {0}'.format(local_path)) + warn('hash mismatch for {}, expected {}, got {}'.format(local_path, expected_sha256, file_sha256)) return False return True