Skip to content

Commit

Permalink
fixed: was not displaying a useful error message when creating an entity
Browse files Browse the repository at this point in the history
  • Loading branch information
slim committed Nov 8, 2023
1 parent 78c12c6 commit 19c73ba
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/hydra/fetchHydra.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ function fetchHydra(
});
}

return jsonld
.expand(body, {
base: getDocumentationUrlFromHeaders(headers),
documentLoader,
})
return documentLoader(getDocumentationUrlFromHeaders(headers))
.then((response) => jsonld.expand(body, {
expandContext: response.document as any
}))

.then((json) =>
Promise.reject(
new HttpError(
Expand Down

0 comments on commit 19c73ba

Please sign in to comment.