Closed Bug 558957 Opened 15 years ago Closed 15 years ago

type errors when calling a function should report which argument was bad

Categories

(Core :: js-ctypes, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 551057

People

(Reporter: Dolske, Unassigned)

Details

Take a working function call, and flip two args (or just pass in a bad arg). An error is thrown, but for functions with multiple arguments it can kind of painful to figure out what's wrong. EG, TypeError: expected type pointer, got ctypes.voidptr_t(ctypes.UInt64("0x38a90f0")) would be better as TypeError: expected type pointer for argument 1, got ctypes.voidptr_t(ctypes.UInt64("0x38a90f0"))
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.