Rollup merge of #31332 - durka:errorck-fileline, r=brson

Small modification to #31288. Shows full path and line number for unused error codes.
This commit is contained in:
Manish Goregaokar 2016-02-03 02:54:24 +05:30
commit f55995bad2

View File

@ -114,7 +114,7 @@ if len(errcode_not_found) > 0:
if errcode in errcode_checked: if errcode in errcode_checked:
continue continue
all_errors.append(errcode) all_errors.append(errcode)
print("error: unused error code: " + errcode) print("error: unused error code: {0} ({1}:{2})".format(*errcode_map[errcode][0]))
errors = True errors = True