From 01fd5fa4f2cade8ead22640f672d5b0556c06183 Mon Sep 17 00:00:00 2001
From: angloth <angus.lothian@hotmail.com>
Date: Sun, 17 May 2020 10:24:04 +0200
Subject: [PATCH] Add error message for scheduling algorithms that haven't been
 implemented yet.

---
 b_asic/schema.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/b_asic/schema.py b/b_asic/schema.py
index 2d286af1..157ed3b8 100644
--- a/b_asic/schema.py
+++ b/b_asic/schema.py
@@ -31,7 +31,7 @@ class Schema:
         if scheduling_alg == "ASAP":
             self._schedule_asap()
         else:
-            raise NotImplementedError
+            raise NotImplementedError(f"No algorithm with name: {scheduling_alg} defined.")
 
         max_end_time = 0
         for op_id, op_start_time in self._start_times.items():
-- 
GitLab