Skip to content

Commit 01b5d49

Browse files
committed
1 parent d2927e5 commit 01b5d49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hydra/parseHydraDocumentation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function findSupportedClass(
5050
'[0]["http://www.w3.org/ns/hydra/core#supportedClass"]',
5151
) as ExpandedClass[] | undefined;
5252
if (!Array.isArray(supportedClasses)) {
53-
throw new Error(
53+
throw new TypeError(
5454
'The API documentation has no "http://www.w3.org/ns/hydra/core#supportedClass" key or its value is not an array.',
5555
);
5656
}
@@ -241,7 +241,7 @@ export default function parseHydraDocumentation(
241241
entrypointClass["http://www.w3.org/ns/hydra/core#supportedProperty"],
242242
)
243243
) {
244-
throw new Error(
244+
throw new TypeError(
245245
'The entrypoint definition has no "http://www.w3.org/ns/hydra/core#supportedProperty" key or it is not an array.',
246246
);
247247
}

0 commit comments

Comments
 (0)