diff --git a/bilby/core/prior/joint.py b/bilby/core/prior/joint.py index bac8fceb59633acc569179a095adec9f85333fd5..c9baa773f9d2b5789cf58261d544233a8bdd1b74 100644 --- a/bilby/core/prior/joint.py +++ b/bilby/core/prior/joint.py @@ -659,7 +659,7 @@ class JointPrior(Prior): raise TypeError("Must supply a JointPriorDist object instance to be shared by all joint params") if name not in dist.names: - raise ValueError("'{}' is not a parameter in the JointPriorDist") + raise ValueError("'{}' is not a parameter in the JointPriorDist".format(name)) self.dist = dist super(JointPrior, self).__init__(name=name, latex_label=latex_label, unit=unit, minimum=dist.bounds[name][0],