Modify

Opened 17 years ago

Closed 16 years ago

#1137 closed Feature Request (Completed)

Change RegEnumKey/RegEnumVal error return to be more sensible.

Reported by: xelotiac@… Owned by: Valik
Milestone: 3.3.1.2 Component: AutoIt
Version: Severity: None
Keywords: Cc:

Description

Hello,

I hope it will not be 'is a feature, not a bug' ;)

Both functions, RegEnumKey / RegEnumVal, delivers if there is no valid key or no more key available german sentence like 'Das System kann die angegebene Datei nicht finden' Or 'Es sind keine Daten mehr verfügbar'. So I have to use always additional string function to check the return value of it. The string info is more exact than the available error codes (differents between 'not exist' and 'not anymore exists'. How about a Return Value like and add this different as a new error cde.

Thanks for reading,

Sebastian

Attachments (0)

Change History (8)

comment:1 by Valik, 17 years ago

Summary: RegEnumKey / RegEnumVal Return ValueChange RegEnumKey/RegEnumVal error return to be more sensible.
Type: BugFeature Request
Version: 3.3.0.0

I don't think this is a bug, but I do think the behavior should be changed. Adjusting ticket to reflect a feature request.

comment:2 by J-Paul Mesnage, 16 years ago

Today you already get 2 different @error 1 and -1.
In case more information is needed I add @extended setting equal to Windows return code which usely will be 2 and 103

comment:3 by Valik, 16 years ago

The return value contains a text string describing the error. This is WRONG. The return value should be an empty string.

comment:4 by J-Paul Mesnage, 16 years ago

Milestone: 3.3.1.2
Owner: set to J-Paul Mesnage
Resolution: Completed
Status: newclosed

Added in version: 3.3.1.2

comment:5 by Valik, 16 years ago

Milestone: 3.3.1.2
Resolution: Completed
Status: closedreopened

This is not completed in a satisfactory way. In fact the change completely ignores the problem I have with the function which is that it returns an error string on failure. The changes to @extended are superfluous and unnecessary.

In short revision 5141 needs completely reverted.

comment:6 by J-Paul Mesnage, 16 years ago

Milestone: 3.3.1.2
Resolution: Fixed
Status: reopenedclosed

comment:7 by Valik, 16 years ago

Milestone: 3.3.1.2
Resolution: Fixed
Status: closedreopened

Err, please actually read why I reopened this ticket.

comment:8 by Valik, 16 years ago

Milestone: 3.3.1.2
Owner: changed from J-Paul Mesnage to Valik
Resolution: Completed
Status: reopenedclosed

Changed in version: 3.3.1.2

Modify Ticket

Action
as closed The owner will remain Valik.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.