diff --git a/src/instructlab/eval/exceptions.py b/src/instructlab/eval/exceptions.py index 31c7606..8a79f42 100644 --- a/src/instructlab/eval/exceptions.py +++ b/src/instructlab/eval/exceptions.py @@ -12,10 +12,13 @@ class ModelNotFoundError(EvalError): Exception raised when model is not able to be found Attributes - model model that is being operated on + message error message to be printed on raise + model model that is being operated on + path filepath of model location """ - def __init__(self, model) -> None: + def __init__(self, path) -> None: super().__init__() - self.model = model - self.message = f"Model {self.model} could not be found" + self.path = path + self.model = path.rsplit('/')[-1] + self.message = f"Model {self.model} could not be found at {self.path}"