mirror of
https://github.com/google/blockly.git
synced 2026-01-04 15:40:08 +01:00
Improve error messages during build.
This commit is contained in:
2
build.py
2
build.py
@@ -261,6 +261,7 @@ class Gen_compressed(threading.Thread):
|
|||||||
for error in errors:
|
for error in errors:
|
||||||
print('FATAL ERROR')
|
print('FATAL ERROR')
|
||||||
print(error['error'])
|
print(error['error'])
|
||||||
|
if error['file']:
|
||||||
print('%s at line %d:' % (
|
print('%s at line %d:' % (
|
||||||
file_lookup(error['file']), error['lineno']))
|
file_lookup(error['file']), error['lineno']))
|
||||||
print(error['line'])
|
print(error['line'])
|
||||||
@@ -272,6 +273,7 @@ class Gen_compressed(threading.Thread):
|
|||||||
for warning in warnings:
|
for warning in warnings:
|
||||||
print('WARNING')
|
print('WARNING')
|
||||||
print(warning['warning'])
|
print(warning['warning'])
|
||||||
|
if warning['file']:
|
||||||
print('%s at line %d:' % (
|
print('%s at line %d:' % (
|
||||||
file_lookup(warning['file']), warning['lineno']))
|
file_lookup(warning['file']), warning['lineno']))
|
||||||
print(warning['line'])
|
print(warning['line'])
|
||||||
|
|||||||
Reference in New Issue
Block a user