On 04/14/2014 04:15 AM, Waldek Hebisch wrote: >> Waldek, if generating this last message would be easy, I would rather >> want to have that instead of just "Error detected in library code".
>> If I am not completely wrong than such message very often just means >> wrong user input. > > The message is 'Error detected within library code'. I am not > an expert on English but my impression is that 'within' here means > the same as 'while executing'. So, there are at least two > possibilities: > > - there is an error in the library > - library found an error > > AFAICS using 'in' as you did would mean the first possibility, Sorry. I wanted to copy the original message with "within" to this mail. However, I wanted *instead of this" line something else. > Concerning change: I would keep the 'Error detected within library > code' part. I am just thinking about changing what is written > below it. OK, that would be fine for me. > >> Error detected within library code: > "failed" of mode Union(NonNegativeInteger,"failed") cannot be coerced to > mode NonNegativeInteger That's much better. That would tell me more where to look for the problem in the user or library code. > However, this depends on coercion to Output form and prefix2String. > I am not sure how robust they are (it woulb be embarasing to get > error during printing error message). Also, values may be quite > big so it would be good to truncate output in such case. In such a case, maybe the coercion to OutputForm can be put into a "try" expression (or it's lisp equivalent) and if it fails Lisp printing will take over. I'm not really in favour of truncating error messages. But if you really want that, maybe some kind of ")set errors truncate on" would be an option. Ralf -- You received this message because you are subscribed to the Google Groups "FriCAS - computer algebra system" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/fricas-devel. For more options, visit https://groups.google.com/d/optout.
