Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
appinventor-sources
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
appinventor-sources
Commits
1f194fd4
Commit
1f194fd4
authored
Jun 12, 2012
by
Vance Turnewitsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue 114 update. More error messages changed to info.
parent
51efa8f7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
3 deletions
+15
-3
appinventor/appengine/src/com/google/appinventor/client/explorer/commands/BuildCommand.java
...le/appinventor/client/explorer/commands/BuildCommand.java
+3
-1
appinventor/appengine/src/com/google/appinventor/client/explorer/commands/EnsurePhoneConnectedCommand.java
...client/explorer/commands/EnsurePhoneConnectedCommand.java
+9
-1
appinventor/appengine/src/com/google/appinventor/client/explorer/commands/WaitForBuildResultCommand.java
...r/client/explorer/commands/WaitForBuildResultCommand.java
+3
-1
No files found.
appinventor/appengine/src/com/google/appinventor/client/explorer/commands/BuildCommand.java
View file @
1f194fd4
...
@@ -89,7 +89,9 @@ public class BuildCommand extends ChainableCommand {
...
@@ -89,7 +89,9 @@ public class BuildCommand extends ChainableCommand {
break
;
break
;
default
:
default
:
String
errorMsg
=
result
.
getError
();
String
errorMsg
=
result
.
getError
();
ErrorReporter
.
reportError
(
MESSAGES
.
buildFailedError
()
+
// This is not an internal App Inventor bug. The error is reported as info so that
// the red background is not shown.
ErrorReporter
.
reportInfo
(
MESSAGES
.
buildFailedError
()
+
(
errorMsg
.
isEmpty
()
?
""
:
" "
+
errorMsg
));
(
errorMsg
.
isEmpty
()
?
""
:
" "
+
errorMsg
));
break
;
break
;
}
}
...
...
appinventor/appengine/src/com/google/appinventor/client/explorer/commands/EnsurePhoneConnectedCommand.java
View file @
1f194fd4
...
@@ -36,7 +36,15 @@ public class EnsurePhoneConnectedCommand extends ChainableCommand {
...
@@ -36,7 +36,15 @@ public class EnsurePhoneConnectedCommand extends ChainableCommand {
AsyncCallback
<
Boolean
>
callback
=
new
AsyncCallback
<
Boolean
>()
{
AsyncCallback
<
Boolean
>
callback
=
new
AsyncCallback
<
Boolean
>()
{
@Override
@Override
public
void
onFailure
(
Throwable
caught
)
{
public
void
onFailure
(
Throwable
caught
)
{
ErrorReporter
.
reportError
(
caught
.
getMessage
());
if
(
caught
.
getMessage
().
equals
(
MESSAGES
.
noCodeblocksConnection
()))
{
// This error is not an App Inventor bug; therefore, it
// should be reported as an info message.
ErrorReporter
.
reportInfo
(
caught
.
getMessage
());
}
else
{
// The error is something else; therefore, report as
// an error message.
ErrorReporter
.
reportError
(
caught
.
getMessage
());
}
executionFailedOrCanceled
();
executionFailedOrCanceled
();
}
}
...
...
appinventor/appengine/src/com/google/appinventor/client/explorer/commands/WaitForBuildResultCommand.java
View file @
1f194fd4
...
@@ -91,7 +91,9 @@ public class WaitForBuildResultCommand extends ChainableCommand {
...
@@ -91,7 +91,9 @@ public class WaitForBuildResultCommand extends ChainableCommand {
}
else
if
(
result
.
getResult
()
==
1
)
{
}
else
if
(
result
.
getResult
()
==
1
)
{
// General build error
// General build error
String
errorMsg
=
result
.
getError
();
String
errorMsg
=
result
.
getError
();
ErrorReporter
.
reportError
(
MESSAGES
.
buildFailedError
()
+
// This is not an internal App Inventor bug. The error should be
// reported in a yellow info box.
ErrorReporter
.
reportInfo
(
MESSAGES
.
buildFailedError
()
+
(
errorMsg
.
isEmpty
()
?
""
:
" "
+
errorMsg
));
(
errorMsg
.
isEmpty
()
?
""
:
" "
+
errorMsg
));
executionFailedOrCanceled
();
executionFailedOrCanceled
();
}
else
if
(
result
.
getResult
()
==
2
)
{
}
else
if
(
result
.
getResult
()
==
2
)
{
...
...
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