We figured we'd want to scare you enough so that you never, ever did it
again.
Well, the serious point is that that error message is the generic kind of
message we get from the CCPN API. In Analysis we don't try and turn it
into a more sensible error message because that would be a big translation
job (i.e. lots of things could go wrong so we'd need to do a big
translation job). Now whether the API could produce more user friendly
error messages is a question for Rasmus (that would still be a big job).
Wayne
On Wed, 18 Mar 2009, Brian Smith wrote:
> Got the following traceback when I mistakenly tried to create a new project
> with a "-" in the name. Maybe a less scary warning would be nice?
>
> Traceback (most recent call last):
> File "/usr/lib/python2.4/lib-tk/Tkinter.py", line 1345, in __call__
> return self.func(*args)
> File
> "/usr/local/ccpnmr/temporaryReleaseDir/ccpnmr/ccpnmr2.0/python/ccpnmr/analysis/AnalysisPopup.py",
> line 1117, in newProject
> project = Impl.MemopsRoot(name=name)
> File
> "/usr/local/ccpnmr/temporaryReleaseDir/ccpnmr/ccpnmr2.0/python/memops/api/Implementation.py",
> line 5794, in __init__
> File
> "/usr/local/ccpnmr/temporaryReleaseDir/ccpnmr/ccpnmr2.0/python/memops/api/Implementation.py",
> line 7939, in checkValid
> ApiError: memops.Implementation.MemopsRoot.checkValid: name:
> name constraint value_is_alphanumeric_or_underscore violated by value:
>
> Dr. Brian O. Smith ---------------------- B Smith at bio gla ac uk
> Division of Molecular & Cellular Biology,
> Faculty of Biomedical & Life Sciences,
> Joseph Black Building, University of Glasgow, Glasgow G12 8QQ, UK.
> Tel: 0141 330 5167/6459/3089 Fax: 0141 330 4600
> -------------------------------------------------------------------
> The University of Glasgow, charity number SC004401
>
|