diff options
author | Timotej Lazar <timotej.lazar@araneo.org> | 2015-09-08 12:23:31 +0200 |
---|---|---|
committer | Timotej Lazar <timotej.lazar@araneo.org> | 2015-09-08 12:23:31 +0200 |
commit | 32b86afb8b11c14779c7e7c30c2e3e90d99de980 (patch) | |
tree | ad37b7839f49a7552bbb5877c59f2892f5ba8ce2 | |
parent | 20d9c7e226ec7e7931a209cde597fbe56b3b8e64 (diff) |
Add hint messages for syntax errors
-rw-r--r-- | python/en.py | 7 | ||||
-rw-r--r-- | python/sl.py | 7 |
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> +''', } |