|
From: | Robert Jenssen |
Subject: | [Octave-bug-tracker] [bug #47874] error() fails when string contains a colon |
Date: | Sun, 8 May 2016 03:22:48 +0000 (UTC) |
User-agent: | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.94 Safari/537.36 |
Follow-up Comment #1, bug #47874 (project octave): Sorry if this report was a bit cryptic. The "doc" for error() has: It is also possible to assign an identification string to an error. If an error has such an ID the user can catch this error as will be shown in the next example. To assign an ID to an error, simply call ‘error’ with two string arguments, where the first is the identification string, and the second is the actual error. Note that error IDs are in the format "NAMESPACE:ERROR-NAME". I read this to mean that error should only assume that the first string is an error ID if that string contains a ":" AND there are two string arguments. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?47874> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |