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:
commit
f55995bad2
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user