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

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

[Octave-bug-tracker] [bug #41258] Make graphics_toolkit('bad') a warning


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #41258] Make graphics_toolkit('bad') a warning
Date: Fri, 17 Jan 2014 14:28:12 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36

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

I see, so you want to allow people to put graphics_toolkit whatever in scripts
and only show a warning message and silently continue with whatever the
current toolkit is? I have no strong opinion on that part of the change. On
the one hand, maybe the user really doesn't care about the toolkit, in which
case it should be a warning. On the other, maybe they are using a feature that
can only work with a particular toolkit, in which case it should be an error.

What I like about your change is the error message, I think


octave:1> graphics_toolkit foo
error: graphics_toolkit: foo is not available. graphics_toolkit not changed


is much better than


octave:1> graphics_toolkit foo
error: feval: function '__init_foo__' not found
error: called from:
error:   /usr/share/octave/3.8.0/m/plot/util/graphics_toolkit.m at line 70,
column 5


which doesn't tell an ordinary user anything.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?41258>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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