You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: game/static/game/js/pythonControl.js
+14-1
Original file line number
Diff line number
Diff line change
@@ -129,9 +129,22 @@ ocargo.PythonControl = function () {
129
129
}
130
130
131
131
functionoutf(outputText){
132
+
/** @type {string} */
133
+
lettext=outputText
134
+
135
+
if(text.startsWith("ParseError: ")){
136
+
text+="\nThis may be because your code has not been formatted correctly or you have not indented your code correctly."
137
+
}elseif(text.startsWith("AttributeError: ")){
138
+
text+="\nEnsure that the object has the method or property. Review the PY commands for help.\nYou may also be trying to import something that doesn't exist."
139
+
}elseif(text.startsWith("NameError: ")){
140
+
text+="\nName errors usually happen because you have misspelt a variable name. Double check your spelling."
141
+
}elseif(text.startsWith("TypeError: ")){
142
+
text+="\nType errors usually happen because you are trying to perform an illegal action on an object."
0 commit comments