From 249dff7382201d82f83a3d5105c171c8f92da03d Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 2 Jun 2024 16:45:15 +0200 Subject: [PATCH] using an exception in euclid --- euclid.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/euclid.cpp b/euclid.cpp index c738c00c..55265a41 100644 --- a/euclid.cpp +++ b/euclid.cpp @@ -71,8 +71,7 @@ EX namespace euc { break; default: - printf("euc::get_shifttable() called in geometry that is not euclid3"); - exit(1); + throw hr_exception("euc::get_shifttable() called in geometry that is not euclid3"); } // reverse everything