diff options
Diffstat (limited to 'js/codeq/python.js')
-rw-r--r-- | js/codeq/python.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/js/codeq/python.js b/js/codeq/python.js index 085ebfc..ada3954 100644 --- a/js/codeq/python.js +++ b/js/codeq/python.js @@ -42,9 +42,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ codeq.loadProblemData(ref, data).then(function (problem) { enterFun(problem.generalProblemData, data.commonDef, problem.solution); }) - .fail(function (reason) { - codeq.log.error('Failed to obtain the problem definition: ' + reason, reason); - alert('Failed to obtain the problem definition: ' + reason); + .fail(function (error) { + var message = 'Could not obtain problem definition: ' + error.message; + codeq.log.error(message, error); + alert(message); history.back(); }) .done(); |