[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-patch-tracker] [patch #9241] More verbose information when input
From: |
Georg Wiora |
Subject: |
[Octave-patch-tracker] [patch #9241] More verbose information when inputParser fails validating argument |
Date: |
Fri, 27 Jan 2017 09:44:43 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:51.0) Gecko/20100101 Firefox/51.0 |
URL:
<http://savannah.gnu.org/patch/?9241>
Summary: More verbose information when inputParser fails
validating argument
Project: GNU Octave
Submitted by: gwiora
Submitted on: Fri 27 Jan 2017 10:44:42 AM CET
Category: Core : new feature
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
inputParser class can easily print very helpful information if the validation
function of a parsed argument fails.
Because validation functions very often are anonymous functions it is usefull
to print the function body to give immediate information which check failed.
For that purpose line 506 in inputParser.m (octave 4.2.0) has to be replaced
by
this.error (sprintf ("failed validation of %s with %s", toupper
(name),func2str(val)));
I found this usefull.
Georg
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/patch/?9241>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-patch-tracker] [patch #9241] More verbose information when inputParser fails validating argument,
Georg Wiora <=