MCPcopy Index your code
hub / github.com/ronreiter/interactive-tutorials / handleError

Function handleError

static/js/learnpython.js:192–198  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

190}
191
192function handleError(data) {
193 if (data.status === 0) {
194 print("There was an unknown error!");
195 } else {
196 print(data["text"]);
197 }
198}
199
200function correct() {
201 bootbox.confirm("Correct! Click OK to move on to the next chapter.", function(success) {

Callers

nothing calls this directly

Calls 1

printFunction · 0.85

Tested by

no test coverage detected