summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@araneo.org>2015-09-08 12:23:31 +0200
committerTimotej Lazar <timotej.lazar@araneo.org>2015-09-08 12:23:31 +0200
commit32b86afb8b11c14779c7e7c30c2e3e90d99de980 (patch)
treead37b7839f49a7552bbb5877c59f2892f5ba8ce2 /python
parent20d9c7e226ec7e7931a209cde597fbe56b3b8e64 (diff)
Add hint messages for syntax errors
Diffstat (limited to 'python')
-rw-r--r--python/en.py7
-rw-r--r--python/sl.py7
2 files changed, 14 insertions, 0 deletions
diff --git a/python/en.py b/python/en.py
index d3189d9..561db85 100644
--- a/python/en.py
+++ b/python/en.py
@@ -8,4 +8,11 @@ hint = {
'test_results': '''\
<p>Your code passed [%=passed%] / [%=total%] tests.</p>
''',
+
+ 'syntax_error': '''\
+<p>Your code contains a syntax error in line [%=lineno%]:</p>
+<pre>
+[%=message%]
+</pre>
+''',
}
diff --git a/python/sl.py b/python/sl.py
index b782298..e829a82 100644
--- a/python/sl.py
+++ b/python/sl.py
@@ -8,4 +8,11 @@ hint = {
'test_results': '''\
<p>Program je opravil [%=passed%] / [%=total%] testov.</p>
''',
+
+ 'syntax_error': '''\
+<p>Program vsebuje sintaktično napako v vrstici [%=lineno%]:</p>
+<pre>
+[%=message%]
+</pre>
+''',
}