Skip to content

Commit 5a16166

Browse files
iabdalkaderdpgeorge
authored andcommitted
toolkit/app-gen-toc.py: Convert pathlib object to string.
Fixes an error that's raised if the config has what seems to be invalid/obsolete entries. Signed-off-by: iabdalkader <[email protected]>
1 parent d77bfb3 commit 5a16166

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

toolkit/app-gen-toc.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,9 @@ def updateDeviceConfig(file):
630630
unwanted_item = True
631631
if unwanted_item:
632632
print(
633-
"[ERROR] File '" + file + "' should not contain 'miscellaneous' entry"
633+
"[ERROR] File '"
634+
+ file.as_posix()
635+
+ "' should not contain 'miscellaneous' entry"
634636
)
635637
sys.exit(EXIT_WITH_ERROR)
636638
# Don't write out the json file, because it didn't change.

0 commit comments

Comments
 (0)