From 32b86afb8b11c14779c7e7c30c2e3e90d99de980 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Tue, 8 Sep 2015 12:23:31 +0200 Subject: Add hint messages for syntax errors --- python/en.py | 7 +++++++ python/sl.py | 7 +++++++ 2 files changed, 14 insertions(+) (limited to 'python') diff --git a/python/en.py b/python/en.py index d3189d9..561db85 100644 --- a/python/en.py +++ b/python/en.py @@ -7,5 +7,12 @@ hint = { 'test_results': '''\

Your code passed [%=passed%] / [%=total%] tests.

+''', + + 'syntax_error': '''\ +

Your code contains a syntax error in line [%=lineno%]:

+
+[%=message%]
+
''', } diff --git a/python/sl.py b/python/sl.py index b782298..e829a82 100644 --- a/python/sl.py +++ b/python/sl.py @@ -7,5 +7,12 @@ hint = { 'test_results': '''\

Program je opravil [%=passed%] / [%=total%] testov.

+''', + + 'syntax_error': '''\ +

Program vsebuje sintaktično napako v vrstici [%=lineno%]:

+
+[%=message%]
+
''', } -- cgit v1.2.1