Skip to content

Commit

Permalink
use !SourceFile when raising TLK load error
Browse files Browse the repository at this point in the history
  • Loading branch information
th3w1zard1 committed Nov 8, 2023
1 parent 6fb09df commit 603894f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pykotor/tslpatcher/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def process_tlk_entries(
append_tlk_edits = read_tlk(self.mod_path / self.config.patches_tlk.sourcefile)
if len(append_tlk_edits) == 0:
syntax_error_caught = True
msg = f"'append.tlk' in mod directory is empty, but is required to perform modifier '{key}={value}' in [TLKList]"
msg = f"'{self.config.patches_tlk.sourcefile}' in mod directory is empty, but is required to perform modifier '{key}={value}' in [TLKList]"
raise ValueError(msg) # noqa: TRY301
strref_range = parse_range(lowercase_key[6:])
token_id_range = parse_range(value)
Expand Down

0 comments on commit 603894f

Please sign in to comment.