summaryrefslogtreecommitdiff
path: root/lib/functions.py
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2022-06-15 08:41:07 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2022-06-15 08:41:07 +0200
commit7e4b7f3e0132bd9f4ae903fb83b438ee0f4e07b2 (patch)
tree3515a4a8002257c2e523b64dd9e1650f749a1495 /lib/functions.py
parent68f0f50e62d801e1398c7a877e5ccaaa0d1b10ec (diff)
FOL: Improve error messages
Diffstat (limited to 'lib/functions.py')
-rw-r--r--lib/functions.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/functions.py b/lib/functions.py
index 7cc8cdd..9a99c58 100644
--- a/lib/functions.py
+++ b/lib/functions.py
@@ -719,9 +719,14 @@ class FOLFunction(ModelFunction):
return self._function(self.model_args, actual_param_list)
except FloatingPointError as e:
logger.error(
- f"{e} when predicting {self._function_str}({param_list}), returning static value"
+ f"{e} when predicting {self._function_str}({self.model_args}, {actual_param_list}) for {param_list}, returning static value"
)
return self.value
+ except TypeError as e:
+ logger.error(
+ f"{e} when predicting {self._function_str}({self.model_args}, {actual_param_list}) for {param_list}"
+ )
+ raise
def to_json(self, **kwargs):
ret = super().to_json(**kwargs)