Skip to content
Snippets Groups Projects
Commit 89a13a8b authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Scan: Fix an error message.

parent bfa28628
No related branches found
No related tags found
No related merge requests found
......@@ -1246,8 +1246,8 @@ class GenericScanKernel(_GenericScanKernelBase):
queue = kwargs.get("queue")
if len(args) != len(self.parsed_args):
raise TypeError("invalid number of arguments in "
"custom-arguments mode")
raise TypeError("expected %d arguments, got %d" %
(len(self.parsed_args), len(args)))
first_array = args[self.first_array_idx]
allocator = allocator or first_array.allocator
......@@ -1425,8 +1425,8 @@ class GenericDebugScanKernel(_GenericScanKernelBase):
queue = kwargs.get("queue")
if len(args) != len(self.parsed_args):
raise TypeError("invalid number of arguments in "
"custom-arguments mode")
raise TypeError("expected %d arguments, got %d" %
(len(self.parsed_args), len(args)))
first_array = args[self.first_array_idx]
allocator = allocator or first_array.allocator
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment