better error message

This commit is contained in:
ticvac 2025-05-07 16:32:51 +02:00
parent 7f0b77327e
commit 4cb534838a

View file

@ -35,7 +35,7 @@ def process_code(request):
out = interpreter.saved_output
except Exception as e:
print('Error:', e)
out = 'Error: Code execution failed'
out = 'Error: Code execution failed - ' + str(e)
end_state = interpreter.print_data(interpreter.last_step)