Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ardublockly
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
ardublockly
Commits
26f95641
Commit
26f95641
authored
Dec 12, 2014
by
Neil Fraser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve error messages during build.
parent
4fe83ba4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
build.py
build.py
+10
-8
No files found.
build.py
View file @
26f95641
...
@@ -261,10 +261,11 @@ class Gen_compressed(threading.Thread):
...
@@ -261,10 +261,11 @@ 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'
])
print
(
'%s at line %d:'
%
(
if
error
[
'file'
]:
file_lookup
(
error
[
'file'
]),
error
[
'lineno'
]))
print
(
'%s at line %d:'
%
(
print
(
error
[
'line'
])
file_lookup
(
error
[
'file'
]),
error
[
'lineno'
]))
print
((
' '
*
error
[
'charno'
])
+
'^'
)
print
(
error
[
'line'
])
print
((
' '
*
error
[
'charno'
])
+
'^'
)
sys
.
exit
(
1
)
sys
.
exit
(
1
)
else
:
else
:
if
json_data
.
has_key
(
'warnings'
):
if
json_data
.
has_key
(
'warnings'
):
...
@@ -272,10 +273,11 @@ class Gen_compressed(threading.Thread):
...
@@ -272,10 +273,11 @@ class Gen_compressed(threading.Thread):
for
warning
in
warnings
:
for
warning
in
warnings
:
print
(
'WARNING'
)
print
(
'WARNING'
)
print
(
warning
[
'warning'
])
print
(
warning
[
'warning'
])
print
(
'%s at line %d:'
%
(
if
warning
[
'file'
]:
file_lookup
(
warning
[
'file'
]),
warning
[
'lineno'
]))
print
(
'%s at line %d:'
%
(
print
(
warning
[
'line'
])
file_lookup
(
warning
[
'file'
]),
warning
[
'lineno'
]))
print
((
' '
*
warning
[
'charno'
])
+
'^'
)
print
(
warning
[
'line'
])
print
((
' '
*
warning
[
'charno'
])
+
'^'
)
print
()
print
()
if
not
json_data
.
has_key
(
'compiledCode'
):
if
not
json_data
.
has_key
(
'compiledCode'
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment