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

 
 

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

Submitter:  Mike Miller <mtmiller>
Submitted:  Tue 27 Sep 2016 10:31:23 PM UTC
   
 
Category:  Octave Function Severity:  1 - Wish
Priority:  5 - Normal Item Group:  Feature Request
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group 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


>> colormap foo
error: value on right hand side of assignment is undefined
error: called from
    colormap at line 75 column 13


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

Very low priority, just something I noticed.

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


Mike Miller <mtmiller>
Group Member

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-09-27 rik5 StatusPostponed Fixed
        Open/ClosedOpen Closed
    2016-09-27 mtmiller Summarycolormap foo "colormap foo" produces unhelpful error message

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code