diff --git a/array_api_compat/common/_helpers.py b/array_api_compat/common/_helpers.py index 61aee4be..5cb029dc 100644 --- a/array_api_compat/common/_helpers.py +++ b/array_api_compat/common/_helpers.py @@ -99,7 +99,7 @@ def your_function(x, y): namespaces.add(torch) else: # TODO: Support Python scalars? - raise TypeError("The input is not a supported array type") + raise TypeError(f"{type(x).__name__} is not a supported array type") if not namespaces: raise TypeError("Unrecognized array input")