makerst: Fix file name not appearing in error message

This commit is contained in:
Hugo Locurcio 2022-06-22 12:15:05 +02:00
parent c18d0f2035
commit 49f94b94c7
No known key found for this signature in database
GPG key ID: 39E8F8BE30B0A49C

View file

@ -913,9 +913,9 @@ def format_codeblock(code_type, post_text, indent_level, state): # types: str,
if to_skip > indent_level:
print_error(
"{}.xml: Four spaces should be used for indentation within ["
+ code_type
+ "].".format(state.current_class),
"{}.xml: Four spaces should be used for indentation within [{}].".format(
state.current_class, code_type
),
state,
)