Skip to content

Commit bfe74ef

Browse files
committed
Fixed #62
Improve the error message for required keys not found.
1 parent 850bc22 commit bfe74ef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

about_code_tool/genabout.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ def read_input(self, input_file, mapping):
9494
line['version'] = line[version]
9595
except Exception as e:
9696
print(repr(e))
97+
print("The required keys not found.")
9798
print("Please use the '--mapping' option to map the input keys and verify the mapping information are correct.")
99+
print("OR, correct the header keys from the input CSV.")
98100
sys.exit(errno.EINVAL)
99101
if not about_file == 'about_file':
100102
del line[about_file]

0 commit comments

Comments
 (0)