Modify

Opened 12 years ago

Closed 12 years ago

#2483 closed Feature Request (Rejected)

DriveGetDrive - different error for "improper drive type" versus "none found"

Reported by: mrider Owned by:
Milestone: Component: AutoIt
Version: Severity: None
Keywords: Cc:

Description

Greetings:

This is a small thing - but it seems to me that returning a different @error for an improper type in DriveGetDrive as opposed to you don't have any of those would be helpful.

So for example, the following might set @error = 1 (assume I have no "NETWORK" drives):

Local $drives = DriveGetDrive("NETWORK")

Whereas the following might set @error = 2

Local $drives = DriveGetDrive("NETOWRK") (note the spelling)

This would greatly simplify handling the difference between "you don't happen to have any of those", versus "nobody can EVER have any of those because the type is wrong".

See the following thread for where I initially asked about this and why I concluded that adding another @error value might be best.

http://www.autoitscript.com/forum/topic/154845-drivegetdrive-api-error-for-proper-type-why/

Thank you for your consideration...

Attachments (0)

Change History (2)

comment:1 by TicketCleanup, 12 years ago

Version: 3.3.8.1

Automatic ticket cleanup.

comment:2 by Jon, 12 years ago

Resolution: Rejected
Status: newclosed

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


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