diff options
author | King | 2018-07-12 14:00:59 -0700 |
---|---|---|
committer | GitHub | 2018-07-12 14:00:59 -0700 |
commit | 661c9d82bb680e745cc6b498131a0793b954c436 (patch) | |
tree | 9982e226f9bf81aaab98d752db3a8aba3de0c631 /yaksh/error_messages.py | |
parent | f61742f04f417cfb60576f9904afd0dc5c537b3c (diff) | |
parent | 714eeb188c67a6b61dfd132f0869e7679d91c8bf (diff) | |
download | online_test-661c9d82bb680e745cc6b498131a0793b954c436.tar.gz online_test-661c9d82bb680e745cc6b498131a0793b954c436.tar.bz2 online_test-661c9d82bb680e745cc6b498131a0793b954c436.zip |
Merge pull request #491 from maheshgudi/catch_compilation_error
Raise appropriate exceptions for C and Java language to the Grader
Diffstat (limited to 'yaksh/error_messages.py')
-rw-r--r-- | yaksh/error_messages.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/yaksh/error_messages.py b/yaksh/error_messages.py index 512d664..f34bf28 100644 --- a/yaksh/error_messages.py +++ b/yaksh/error_messages.py @@ -11,7 +11,10 @@ def prettify_exceptions(exception, message, traceback=None, "traceback": traceback, "message": message } - if exception == 'RuntimeError' or exception == 'RecursionError': + ignore_traceback = ['RuntimeError', 'RecursionError', + "CompilationError", "TestCaseError" + ] + if exception in ignore_traceback: err["traceback"] = None if exception == 'AssertionError': |