Commit 07698696 authored by Maverick Chardet's avatar Maverick Chardet
Browse files

Updated Madeus example to use new error detection properly

parent 288e1cff
......@@ -104,7 +104,9 @@ if __name__ == '__main__':
sca.set_print_time(True)
sca.set_record_gantt(True)
sca.run()
print("Errors:", sca.get_error_reports())
errors = sca.get_error_reports()
if errors:
print("Errors:\n- %s" % '\n- '.join(errors))
# Gantt chart
gc = sca.get_gantt_record().get_gantt_chart()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment