Skip to content
This repository was archived by the owner on Sep 30, 2020. It is now read-only.

Commit a078835

Browse files
author
Sergio Benitez
committed
Fixed up duplicate commentary.
1 parent f49abe6 commit a078835

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

js/editor.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,20 +118,21 @@ function handleSuccess(message) {
118118
resultDiv.innerHTML = message;
119119
}
120120

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)
123122
function handleWarning(message) {
124123
resultDiv.style.backgroundColor = warningColor;
125124
handleProblem(message, "warning");
126125
}
127126

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)
130128
function handleError(message) {
131129
resultDiv.style.backgroundColor = errorColor;
132130
handleProblem(message, "error");
133131
}
134132

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.
135136
function handleProblem(message, problem) {
136137
// Getting list of ranges with problems
137138
var lines = message.split("<br />");

0 commit comments

Comments
 (0)