[Kst] [Bug 124393] New: [patch] getdata: verbose error descriptions

D.V.Wiebe dwiebe at physics.utoronto.ca
Tue Mar 28 01:52:27 CEST 2006


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=124393         
           Summary: [patch] getdata: verbose error descriptions
           Product: kst
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: general
        AssignedTo: kst kde org
        ReportedBy: dwiebe physics utoronto ca


Version:           1.3.0_devel (using KDE KDE 3.5.1)
Installed from:    Compiled From Sources
Compiler:          gcc (GCC) 3.4.6 
OS:                Linux

The accompanying patch adds a public function, 

char* GetDataErrorString(char* buffer, size_t buflen)

which provides an expanded error description over and above what GD_ERROR_CODES[] gives us for the last encountered getdata error.  It provides line numbers and file names for format file syntax errors, field names for lookup errors, and various useful ancilliary data for other error types.

It also adds an internal function, SetGetDataError, which is now used to set all error return codes.

Current users of getdata (including kst) should be unaffected by this patch: the behaviour of all other public getdata functions is unchanged.


More information about the Kst mailing list