octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #58830] imprecise error message for "size(foo,


From: anonymous
Subject: [Octave-bug-tracker] [bug #58830] imprecise error message for "size(foo, end)"
Date: Sun, 9 Aug 2020 09:21:45 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:79.0) Gecko/20100101 Firefox/79.0

Follow-up Comment #3, bug #58830 (project octave):

How about changing this:


  if (! indexed_object)
    return ovl (octave_NaN);


to this:

  if (! indexed_object)
    error ("Keyword 'end' used incorrectly. Cannot use 'end' as a function
argument or to index non-existent variables.");


The new error message is verbose but helpful in localizing the problems
identified in both bug #58830 and bug #33637.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?58830>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]