This repository was archived by the owner on Sep 30, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -118,20 +118,21 @@ function handleSuccess(message) {
118
118
resultDiv . innerHTML = message ;
119
119
}
120
120
121
- // Called on unsuccessful program run. Detects and prints errors in program
122
- // output and highlights relevant lines and text in the code.
121
+ // Called when program run results in warning(s)
123
122
function handleWarning ( message ) {
124
123
resultDiv . style . backgroundColor = warningColor ;
125
124
handleProblem ( message , "warning" ) ;
126
125
}
127
126
128
- // Called on unsuccessful program run. Detects and prints errors in program
129
- // output and highlights relevant lines and text in the code.
127
+ // Called when program run results in error(s)
130
128
function handleError ( message ) {
131
129
resultDiv . style . backgroundColor = errorColor ;
132
130
handleProblem ( message , "error" ) ;
133
131
}
134
132
133
+ // Called on unsuccessful program run. Detects and prints problems (either
134
+ // warnings or errors) in program output and highlights relevant lines and text
135
+ // in the code.
135
136
function handleProblem ( message , problem ) {
136
137
// Getting list of ranges with problems
137
138
var lines = message . split ( "<br />" ) ;
You can’t perform that action at this time.
0 commit comments