Author: bugman Date: Mon Dec 10 17:20:45 2012 New Revision: 18089 URL: http://svn.gna.org/viewcvs/relax?rev=18089&view=rev Log: Expanded the RelaxNoSpinError class to accept the data pipe name for the error printout. Modified: trunk/relax_errors.py Modified: trunk/relax_errors.py URL: http://svn.gna.org/viewcvs/relax/trunk/relax_errors.py?rev=18089&r1=18088&r2=18089&view=diff ============================================================================== --- trunk/relax_errors.py (original) +++ trunk/relax_errors.py Mon Dec 10 17:20:45 2012 @@ -672,8 +672,11 @@ # Cannot find the spin in the sequence. class RelaxNoSpinError(BaseError): - def __init__(self, id): - self.text = "The spin " + repr(id) + " does not exist." + def __init__(self, id, pipe=None): + if pipe == None: + self.text = "The spin '%s' does not exist." % id + else: + self.text = "The spin '%s' does not exist in the '%s' data pipe." % (id, pipe) # The sequence data is not valid. class RelaxInvalidSeqError(BaseError):