File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ function findSupportedClass(
50
50
'[0]["http://www.w3.org/ns/hydra/core#supportedClass"]' ,
51
51
) as ExpandedClass [ ] | undefined ;
52
52
if ( ! Array . isArray ( supportedClasses ) ) {
53
- throw new Error (
53
+ throw new TypeError (
54
54
'The API documentation has no "http://www.w3.org/ns/hydra/core#supportedClass" key or its value is not an array.' ,
55
55
) ;
56
56
}
@@ -241,7 +241,7 @@ export default function parseHydraDocumentation(
241
241
entrypointClass [ "http://www.w3.org/ns/hydra/core#supportedProperty" ] ,
242
242
)
243
243
) {
244
- throw new Error (
244
+ throw new TypeError (
245
245
'The entrypoint definition has no "http://www.w3.org/ns/hydra/core#supportedProperty" key or it is not an array.' ,
246
246
) ;
247
247
}
You can’t perform that action at this time.
0 commit comments