bugGNU Octave - Bugs: bug #49202, "colormap foo" produces...

 
 

bug #49202: "colormap foo" produces unhelpful error message

Submitted by:  Mike Miller <mtmiller>
Submitted on:  Tue 27 Sep 2016 10:31:23 PM UTC  
 
Category: Octave FunctionSeverity: 1 - Wish
Priority: 5 - NormalItem Group: Feature Request
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 27 Sep 2016 11:27:30 PM UTC, comment #2:

This was an easy fix. I used a try/catch block to test whether 'feval (map)' succeeded, and if it didn't I issue a better error message inside the catch block. See http://hg.savannah.gnu.org/hgweb/octave/rev/b9f5ac691e03.

Rik <rik5>
Project Administrator
Tue 27 Sep 2016 10:34:10 PM UTC, comment #1:

Trying to select an invalid colormap by name results in an unhelpful error message

when it should probably have a more helpful error message like "unknown colormap foo".

Very low priority, just something I noticed.

Mike Miller <mtmiller>
Project Administrator
Tue 27 Sep 2016 10:31:23 PM UTC, original submission:
Mike Miller <mtmiller>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by mtmiller (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 27 Sep 2016 11:27:30 PM UTCrik5StatusPostponed=>Fixed
      Open/ClosedOpen=>Closed
    Tue 27 Sep 2016 10:34:10 PM UTCmtmillerSummarycolormap foo=>"colormap foo" produces unhelpful error message

    Back to the top


    Powered by Savane 3.1-cleanup1