@@ -405,8 +405,9 @@ def check_ptrack_sanity(self, idx_dict):
405405 if idx_dict ['ptrack' ][PageNum ] != 1 :
406406 if self .verbose :
407407 print (
408- 'Page Number {0} of type {1} was added,'
409- ' but ptrack value is {2}. THIS IS BAD' .format (
408+ 'File: {0}\n Page Number {1} of type {2} was added,'
409+ ' but ptrack value is {3}. THIS IS BAD' .format (
410+ idx_dict ['path' ],
410411 PageNum , idx_dict ['type' ],
411412 idx_dict ['ptrack' ][PageNum ])
412413 )
@@ -420,8 +421,9 @@ def check_ptrack_sanity(self, idx_dict):
420421 if idx_dict ['ptrack' ][PageNum ] != 0 :
421422 if self .verbose :
422423 print (
423- 'Page Number {0} of type {1} was deleted,'
424- ' but ptrack value is {2}' .format (
424+ 'File: {0}\n Page Number {1} of type {2} was deleted,'
425+ ' but ptrack value is {3}' .format (
426+ idx_dict ['path' ],
425427 PageNum , idx_dict ['type' ],
426428 idx_dict ['ptrack' ][PageNum ])
427429 )
@@ -437,14 +439,15 @@ def check_ptrack_sanity(self, idx_dict):
437439 if idx_dict ['ptrack' ][PageNum ] != 1 :
438440 if self .verbose :
439441 print (
440- 'Page Number {0} of type {1} was changed,'
441- ' but ptrack value is {2}. THIS IS BAD' .format (
442+ 'File: {0}\n Page Number {1} of type {2} was changed,'
443+ ' but ptrack value is {3}. THIS IS BAD' .format (
444+ idx_dict ['path' ],
442445 PageNum , idx_dict ['type' ],
443446 idx_dict ['ptrack' ][PageNum ])
444447 )
445448 print (
446- "\n Old checksumm: {0}\n "
447- " New checksumm: {1}" .format (
449+ " Old checksumm: {0}\n "
450+ " New checksumm: {1}" .format (
448451 idx_dict ['old_pages' ][PageNum ],
449452 idx_dict ['new_pages' ][PageNum ])
450453 )
@@ -463,8 +466,9 @@ def check_ptrack_sanity(self, idx_dict):
463466 if idx_dict ['ptrack' ][PageNum ] != 0 :
464467 if self .verbose :
465468 print (
466- 'Page Number {0} of type {1} was not changed,'
467- ' but ptrack value is {2}' .format (
469+ 'File: {0}\n Page Number {1} of type {2} was not changed,'
470+ ' but ptrack value is {3}' .format (
471+ idx_dict ['path' ],
468472 PageNum , idx_dict ['type' ],
469473 idx_dict ['ptrack' ][PageNum ]
470474 )
0 commit comments